|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.graph.def.GraphElement org.jbpm.graph.def.Node org.jbpm.graph.node.TaskNode
is a node that relates to one or more tasks.
Property signal
specifies how task completion
triggers continuation of execution.
Field Summary | |
static int |
SIGNAL_FIRST
proceeds execution when the first task instance is completed. |
static int |
SIGNAL_FIRST_WAIT
proceeds execution when the first task instance is completed. |
static int |
SIGNAL_LAST
proceeds execution when the last task instance is completed. |
static int |
SIGNAL_LAST_WAIT
proceeds execution when the last task instance is completed. |
static int |
SIGNAL_NEVER
execution never continues, regardless wether tasks are created or still unfinished. |
static int |
SIGNAL_UNSYNCHRONIZED
execution always continues, regardless wether tasks are created or still unfinished. |
Fields inherited from class org.jbpm.graph.def.Node |
action, arrivingTransitions, leavingTransitions, superState, supportedEventTypes |
Fields inherited from class org.jbpm.graph.def.GraphElement |
events, exceptionHandlers, name, processDefinition |
Constructor Summary | |
TaskNode()
|
|
TaskNode(java.lang.String name)
|
Method Summary | |
void |
addTask(Task task)
|
boolean |
completionTriggersSignal(TaskInstance taskInstance)
|
void |
execute(ExecutionContext executionContext)
override this method to customize the node behaviour. |
boolean |
getCreateTasks()
|
long |
getId()
|
int |
getSignal()
|
Task |
getTask(java.lang.String taskName)
is the task in this task-node with the given name or null if the given task does not exist in this node. |
java.util.Set |
getTasks()
|
java.util.Map |
getTasksMap()
is a Map with the tasks, keyed by task-name or an empty map in case no tasks are present in this task-node. |
void |
leave(ExecutionContext executionContext,
Transition transition)
called by the implementation of this node to continue execution over the given transition. |
static int |
parseSignal(java.lang.String text)
|
void |
read(org.dom4j.Element element,
JpdlXmlReader jpdlReader)
|
void |
removeTaskInstanceSynchronization(Token token)
|
static java.lang.String |
signalToString(int signal)
|
Methods inherited from class org.jbpm.graph.def.GraphElement |
addEvent, addExceptionHandler, findExceptionHandler, fireAndPropagateEvent, fireEvent, getEvent, getEvents, getExceptionHandlers, getName, getParentChain, getParents, hasEvent, hasEvents, raiseException, removeEvent, removeExceptionHandler, reorderExceptionHandler, setProcessDefinition, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jbpm.jpdl.xml.Parsable |
write |
Field Detail |
public static final int SIGNAL_UNSYNCHRONIZED
public static final int SIGNAL_NEVER
public static final int SIGNAL_FIRST
public static final int SIGNAL_FIRST_WAIT
public static final int SIGNAL_LAST
public static final int SIGNAL_LAST_WAIT
Constructor Detail |
public TaskNode()
public TaskNode(java.lang.String name)
Method Detail |
public static int parseSignal(java.lang.String text)
public static java.lang.String signalToString(int signal)
public void read(org.dom4j.Element element, JpdlXmlReader jpdlReader)
public void addTask(Task task)
public void execute(ExecutionContext executionContext)
Node
public void leave(ExecutionContext executionContext, Transition transition)
Node
public boolean completionTriggersSignal(TaskInstance taskInstance)
public void removeTaskInstanceSynchronization(Token token)
public java.util.Map getTasksMap()
public Task getTask(java.lang.String taskName)
public long getId()
getId
in class GraphElement
public java.util.Set getTasks()
public int getSignal()
public boolean getCreateTasks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |