|
||||||||||
| 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
public class Node
| Nested Class Summary | |
|---|---|
static class |
Node.NodeType
|
| Field Summary | |
|---|---|
protected Action |
action
|
protected Set |
arrivingTransitions
|
protected boolean |
isAsync
|
protected boolean |
isAsyncExclusive
|
protected List |
leavingTransitions
|
protected SuperState |
superState
|
static String[] |
supportedEventTypes
Deprecated. arrays are mutable and thus vulnerable to external manipulation. use getSupportedEventTypes() instead |
| Fields inherited from class org.jbpm.graph.def.GraphElement |
|---|
description, events, exceptionHandlers, name, processDefinition |
| Constructor Summary | |
|---|---|
Node()
creates an unnamed node. |
|
Node(String name)
creates a node with the given name. |
|
| Method Summary | |
|---|---|
Transition |
addArrivingTransition(Transition arrivingTransition)
add a bidirection relation between this node and the given arriving transition. |
Transition |
addLeavingTransition(Transition leavingTransition)
creates a bidirection relation between this node and the given leaving transition. |
protected void |
addNodeLog(Token token)
|
protected ExecuteNodeJob |
createAsyncContinuationJob(Token token)
|
void |
enter(ExecutionContext executionContext)
called by a transition to pass execution to this node. |
void |
execute(ExecutionContext executionContext)
override this method to customize the node behaviour. |
String |
generateNextLeavingTransitionName()
generates a new name for a transition that will be added as a leaving transition. |
Action |
getAction()
|
Set |
getArrivingTransitions()
are the arriving transitions. |
Transition |
getDefaultLeavingTransition()
is the default leaving transition. |
String |
getFullyQualifiedName()
the slash separated name that includes all the superstate names. |
Transition |
getLeavingTransition(String transitionName)
retrieves a leaving transition by name. |
List |
getLeavingTransitions()
|
List |
getLeavingTransitionsList()
|
Map |
getLeavingTransitionsMap()
are the leaving Transitions, mapped by their name (String). |
String |
getNameExt()
Deprecated. no use for this method |
List |
getNodes()
returns a list of child nodes (only applicable for SuperState)s. |
Node.NodeType |
getNodeType()
|
GraphElement |
getParent()
is the SuperState or the ProcessDefinition in which this node is contained. |
ProcessDefinition |
getProcessDefinition()
|
SuperState |
getSuperState()
|
String[] |
getSupportedEventTypes()
indicative set of event types supported by this graph element. |
boolean |
hasLeavingTransition(String transitionName)
checks for the presence of a leaving transition with the given name. |
boolean |
hasNoLeavingTransitions()
tells whether this node lacks leaving transitions. |
boolean |
isAsync()
|
boolean |
isAsyncExclusive()
|
boolean |
isSuperStateNode()
indicates wether this node is a superstate. |
void |
leave(ExecutionContext executionContext)
called by the implementation of this node to continue execution over the default transition. |
void |
leave(ExecutionContext executionContext,
String transitionName)
called by the implementation of this node to continue execution over the specified transition. |
void |
leave(ExecutionContext executionContext,
Transition transition)
called by the implementation of this node to continue execution over the given transition. |
void |
read(org.dom4j.Element nodeElement,
JpdlXmlReader jpdlXmlReader)
|
void |
removeArrivingTransition(Transition arrivingTransition)
removes the bidirection relation between this node and the given arriving transition. |
void |
removeLeavingTransition(Transition leavingTransition)
removes the bidirectional relation between this node and the given leaving transition. |
void |
reorderLeavingTransition(int oldIndex,
int newIndex)
moves one leaving transition from the oldIndex and inserts it at the newIndex. |
void |
setAction(Action action)
|
void |
setAsync(boolean isAsync)
|
void |
setAsyncExclusive(boolean isAsyncExclusive)
|
void |
setName(String name)
updates the name of this node |
void |
write(org.dom4j.Element nodeElement)
|
| 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 |
|---|
protected List leavingTransitions
protected Set arrivingTransitions
protected Action action
protected SuperState superState
protected boolean isAsync
protected boolean isAsyncExclusive
public static final String[] supportedEventTypes
getSupportedEventTypes() instead| Constructor Detail |
|---|
public Node()
public Node(String name)
| Method Detail |
|---|
public Node.NodeType getNodeType()
public String getNameExt()
public String[] getSupportedEventTypes()
GraphElement
getSupportedEventTypes in class GraphElement
public void read(org.dom4j.Element nodeElement,
JpdlXmlReader jpdlXmlReader)
read in interface Parsablepublic void write(org.dom4j.Element nodeElement)
write in interface Parsablepublic List getLeavingTransitions()
public List getLeavingTransitionsList()
public Map getLeavingTransitionsMap()
Transitions, mapped by their name (String).
public Transition addLeavingTransition(Transition leavingTransition)
IllegalArgumentException - if leavingTransition is null.public void removeLeavingTransition(Transition leavingTransition)
IllegalArgumentException - if leavingTransition is null.public boolean hasLeavingTransition(String transitionName)
public Transition getLeavingTransition(String transitionName)
public boolean hasNoLeavingTransitions()
public String generateNextLeavingTransitionName()
public Transition getDefaultLeavingTransition()
public void reorderLeavingTransition(int oldIndex,
int newIndex)
public Set getArrivingTransitions()
public Transition addArrivingTransition(Transition arrivingTransition)
IllegalArgumentException - if t is null.public void removeArrivingTransition(Transition arrivingTransition)
IllegalArgumentException - if t is null.public GraphElement getParent()
SuperState or the ProcessDefinition in which this node is contained.
getParent in class GraphElementpublic void enter(ExecutionContext executionContext)
protected ExecuteNodeJob createAsyncContinuationJob(Token token)
public void execute(ExecutionContext executionContext)
public void leave(ExecutionContext executionContext)
public void leave(ExecutionContext executionContext,
String transitionName)
public void leave(ExecutionContext executionContext,
Transition transition)
protected void addNodeLog(Token token)
public ProcessDefinition getProcessDefinition()
getProcessDefinition in class GraphElementpublic void setName(String name)
setName in class GraphElementpublic String getFullyQualifiedName()
public boolean isSuperStateNode()
public List getNodes()
SuperState)s.
public SuperState getSuperState()
public Action getAction()
public void setAction(Action action)
public boolean isAsync()
public void setAsync(boolean isAsync)
public boolean isAsyncExclusive()
public void setAsyncExclusive(boolean isAsyncExclusive)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||