|
||||||||||
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 GraphElement
s.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jbpm.graph.def.Node |
---|
Node.NodeType |
Field Summary | |
---|---|
protected java.util.List |
nodes
|
static java.lang.String[] |
supportedEventTypes
|
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(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()
returns a list of child nodes (only applicable for SuperState )s. |
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. this is currently only used by the process designer to know which event types to show on a given graph element. in process definitions and at runtime, there are no constraints on the event-types. |
boolean |
hasNode(java.lang.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 |
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)
read
in interface Parsable
read
in class Node
public void execute(ExecutionContext executionContext)
Node
execute
in class Node
public java.util.List getNodes()
Node
SuperState
)s.
getNodes
in interface NodeCollection
getNodes
in class Node
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.
getParent
in class Node
public boolean isSuperStateNode()
Node
isSuperStateNode
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |