|
|||||||||
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.def.SuperState
public class SuperState
brings hierarchy into the elements of a process definition by creating a
parent-child relation between GraphElement
s.
Field Summary | |
---|---|
protected java.util.List |
nodes
|
static java.lang.String[] |
supportedEventTypes
|
Fields inherited from class org.jbpm.graph.def.Node |
---|
action, arrivingTransitions, isAsync, leavingTransitions, superState |
Fields inherited from class org.jbpm.graph.def.GraphElement |
---|
events, exceptionHandlers, name, processDefinition |
Constructor Summary | |
---|---|
SuperState()
|
|
SuperState(java.lang.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(java.lang.String hierarchicalName)
finds the node by the given hierarchical name. |
java.lang.String |
generateNodeName()
generates a new name for a node to be added to this collection. |
Node |
getNode(java.lang.String name)
retrieves a node by name. |
java.util.List |
getNodes()
is the ordered list of nodes. |
java.util.Map |
getNodesMap()
maps node-names to nodes. |
GraphElement |
getParent()
is the SuperState or the ProcessDefinition in which this
node is contained. |
java.lang.String[] |
getSupportedEventTypes()
indicative set of event types supported by this graph element. |
boolean |
hasNode(java.lang.String name)
is true if this node-collection contains a node with the given name, false otherwise. |
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, equals, executeAction, findExceptionHandler, fireAndPropagateEvent, fireEvent, getEvent, getEvents, getExceptionHandlers, getId, getName, getParentChain, getParents, hasEvent, hasEvents, raiseException, removeEvent, removeExceptionHandler, reorderExceptionHandler, setProcessDefinition, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jbpm.jpdl.xml.Parsable |
---|
write |
Field Detail |
---|
protected java.util.List nodes
public static final java.lang.String[] supportedEventTypes
Constructor Detail |
---|
public SuperState()
public SuperState(java.lang.String name)
Method Detail |
---|
public java.lang.String[] getSupportedEventTypes()
GraphElement
getSupportedEventTypes
in class Node
public void read(org.dom4j.Element element, JpdlXmlReader jpdlReader)
public void execute(ExecutionContext executionContext)
Node
public java.util.List getNodes()
NodeCollection
getNodes
in interface NodeCollection
public java.util.Map getNodesMap()
NodeCollection
getNodesMap
in interface NodeCollection
public Node getNode(java.lang.String name)
NodeCollection
getNode
in interface NodeCollection
public boolean hasNode(java.lang.String name)
NodeCollection
hasNode
in interface NodeCollection
public Node addNode(Node node)
NodeCollection
addNode
in interface NodeCollection
public Node removeNode(Node node)
NodeCollection
removeNode
in interface NodeCollection
public void reorderNode(int oldIndex, int newIndex)
NodeCollection
reorderNode
in interface NodeCollection
public java.lang.String generateNodeName()
NodeCollection
generateNodeName
in interface NodeCollection
public Node findNode(java.lang.String hierarchicalName)
NodeCollection
findNode
in interface NodeCollection
public boolean containsNode(Node node)
public GraphElement getParent()
Node
SuperState
or the ProcessDefinition
in which this
node is contained.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |