|
||||||||||
| 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.def.SuperState
public class SuperState
brings hierarchy into the elements of a process definition by creating a
parent-child relation between GraphElements.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jbpm.graph.def.Node |
|---|
Node.NodeType |
| Field Summary | |
|---|---|
protected List |
nodes
|
static String[] |
supportedEventTypes
Deprecated. arrays are mutable and thus vulnerable to external manipulation. use getSupportedEventTypes() instead |
| Fields inherited from class org.jbpm.graph.def.Node |
|---|
action, arrivingTransitions, isAsync, isAsyncExclusive, leavingTransitions, superState |
| Fields inherited from class org.jbpm.graph.def.GraphElement |
|---|
description, events, exceptionHandlers, name, processDefinition |
| Constructor Summary | |
|---|---|
SuperState()
|
|
SuperState(String name)
|
|
| Method Summary | |
|---|---|
Node |
addNode(Node node)
adds the given node to this node-collection. |
boolean |
containsNode(Node node)
recursively checks if the given node is one of the descendants of this supernode. |
void |
execute(ExecutionContext executionContext)
override this method to customize the node behaviour. |
Node |
findNode(String hierarchicalName)
finds the node by the given hierarchical name. |
String |
generateNodeName()
generates a new name for a node to be added to this collection. |
Node |
getNode(String name)
retrieves a node by name. |
List |
getNodes()
returns a list of child nodes (only applicable for SuperState)s. |
Map |
getNodesMap()
maps node-names to nodes. |
GraphElement |
getParent()
is the SuperState or the ProcessDefinition in which this node is contained. |
String[] |
getSupportedEventTypes()
indicative set of event types supported by this graph element. |
boolean |
hasNode(String name)
is true if this node-collection contains a node with the given name, false otherwise. |
boolean |
isSuperStateNode()
indicates wether this node is a superstate. |
void |
read(org.dom4j.Element element,
JpdlXmlReader jpdlReader)
|
Node |
removeNode(Node node)
removes the given node from this node-collection. |
void |
reorderNode(int oldIndex,
int newIndex)
changes the order of the nodes : the node on oldIndex is removed and inserted in the newIndex. |
| 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 nodes
public static final String[] supportedEventTypes
getSupportedEventTypes() instead| Constructor Detail |
|---|
public SuperState()
public SuperState(String name)
| Method Detail |
|---|
public String[] getSupportedEventTypes()
GraphElement
getSupportedEventTypes in class Node
public void read(org.dom4j.Element element,
JpdlXmlReader jpdlReader)
read in interface Parsableread in class Nodepublic void execute(ExecutionContext executionContext)
Node
execute in class Nodepublic List getNodes()
NodeSuperState)s.
getNodes in interface NodeCollectiongetNodes in class Nodepublic Map getNodesMap()
NodeCollection
getNodesMap in interface NodeCollectionpublic Node getNode(String name)
NodeCollection
getNode in interface NodeCollectionpublic boolean hasNode(String name)
NodeCollection
hasNode in interface NodeCollectionpublic Node addNode(Node node)
NodeCollection
addNode in interface NodeCollectionpublic Node removeNode(Node node)
NodeCollection
removeNode in interface NodeCollection
public void reorderNode(int oldIndex,
int newIndex)
NodeCollection
reorderNode in interface NodeCollectionpublic String generateNodeName()
NodeCollection
generateNodeName in interface NodeCollectionpublic Node findNode(String hierarchicalName)
NodeCollection
findNode in interface NodeCollectionpublic boolean containsNode(Node node)
public GraphElement getParent()
NodeSuperState or the ProcessDefinition in which this node is contained.
getParent in class Nodepublic boolean isSuperStateNode()
Node
isSuperStateNode in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||