|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.graph.def.GraphElement
org.jbpm.graph.def.Node
org.jbpm.graph.node.TaskNode
public class TaskNode
is a node that relates to one or more tasks. Property signal specifies how task
completion triggers continuation of execution.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jbpm.graph.def.Node |
|---|
Node.NodeType |
| 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 whether tasks are created or still unfinished. |
static int |
SIGNAL_UNSYNCHRONIZED
execution always continues, regardless whether tasks are created or still unfinished. |
| Fields inherited from class org.jbpm.graph.def.Node |
|---|
action, arrivingTransitions, isAsync, isAsyncExclusive, leavingTransitions, superState, supportedEventTypes |
| Fields inherited from class org.jbpm.graph.def.GraphElement |
|---|
description, events, exceptionHandlers, name, processDefinition |
| Constructor Summary | |
|---|---|
TaskNode()
|
|
TaskNode(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()
|
Node.NodeType |
getNodeType()
|
int |
getSignal()
|
Task |
getTask(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. |
Set |
getTasks()
|
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. |
boolean |
isEndTasks()
|
void |
leave(ExecutionContext executionContext,
Transition transition)
called by the implementation of this node to continue execution over the given transition. |
static int |
parseSignal(String text)
|
void |
read(org.dom4j.Element element,
JpdlXmlReader jpdlReader)
|
void |
removeTaskInstanceSynchronization(Token token)
|
void |
setCreateTasks(boolean createTasks)
|
void |
setEndTasks(boolean endTasks)
|
void |
setSignal(int signal)
|
void |
setTasks(Set tasks)
|
static String |
signalToString(int signal)
|
| Methods inherited from class org.jbpm.graph.def.GraphElement |
|---|
addEvent, addExceptionHandler, createAsyncActionExecutionJob, equals, executeAction, findExceptionHandler, fireAndPropagateEvent, fireEvent, getDescription, getEvent, getEvents, getExceptionHandlers, getId, getName, getParentChain, getParents, hasEvent, hasEvents, hashCode, raiseException, removeEvent, removeExceptionHandler, reorderExceptionHandler, setDescription, setProcessDefinition, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 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(String name)
| Method Detail |
|---|
public static int parseSignal(String text)
public static String signalToString(int signal)
public Node.NodeType getNodeType()
getNodeType in class Node
public void read(org.dom4j.Element element,
JpdlXmlReader jpdlReader)
read in interface Parsableread in class Nodepublic void addTask(Task task)
public void execute(ExecutionContext executionContext)
Node
execute in class Node
public void leave(ExecutionContext executionContext,
Transition transition)
Node
leave in class Nodepublic boolean completionTriggersSignal(TaskInstance taskInstance)
public void removeTaskInstanceSynchronization(Token token)
public Map getTasksMap()
public Task getTask(String taskName)
public Set getTasks()
public int getSignal()
public boolean getCreateTasks()
public boolean isEndTasks()
public void setCreateTasks(boolean createTasks)
public void setEndTasks(boolean endTasks)
public void setSignal(int signal)
public void setTasks(Set tasks)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||