KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > tutorial > action > MyActionHandler


1 package org.jbpm.tutorial.action;
2
3 import org.jbpm.graph.def.*;
4 import org.jbpm.graph.exe.*;
5
6 // MyActionHandler represents a class that could execute
7
// some user code during the execution of a jBPM process.
8
public class MyActionHandler implements ActionHandler {
9
10   private static final long serialVersionUID = 1L;
11
12   // Before each test (in the setUp), the isExecuted member
13
// will be set to false.
14
public static boolean isExecuted = false;
15
16   // The action will set the isExecuted to true so the
17
// unit test will be able to show when the action
18
// is being executed.
19
public void execute(ExecutionContext executionContext) {
20     isExecuted = true;
21   }
22 }
23
Popular Tags