|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Node
a node in a OpenProcessDefinition
graph.
The node supports both graph based process models as well as block structured (tree based) process models. First we describe tranisions that can be used to form graph based process structures and then we'll describe node composition to form block structured process models. Both models can be combined as well.
Nodes have incoming
and
outgoing transitions
. These are lists of
transitions.
Optionally, transitions can have names. In that case the transition
names are associated to node's outgoing
transitions
. The map of outgoing
transitions
provides easy access to the named transitions.
One of the outgoing transitions can optionally be marked as
the default transition
.
Block structured process languages have composite nodes that can be modeled
with the parent
-child
relation.
Method Summary | |
---|---|
Transition |
findOutgoingTransition(java.lang.String transitionName)
searches for the given transitionName in this node and then up the parent chain. |
Transition |
getDefaultTransition()
the default outgoing transition. |
java.util.List<Transition> |
getIncomingTransitions()
the list of arriving transitions. |
Transition |
getOutgoingTransition(java.lang.String transitionName)
the first leaving transition with the given name or null of no such leaving transition exists. |
java.util.List<Transition> |
getOutgoingTransitions()
the list of outgoing transitions. |
java.util.Map<java.lang.String,Transition> |
getOutgoingTransitionsMap()
the leaving transitions, keyed by transition name. |
Node |
getParentNode()
retrieve the parent node in the composite node structure. |
boolean |
hasIncomingTransitions()
indicates if this node has arriving transitions |
boolean |
hasOutgoingTransition(java.lang.String transitionName)
indicates if a leaving transition with the given transitionName exists. |
boolean |
hasOutgoingTransitions()
indicates if this node has leaving transitions |
boolean |
isExecutionAsync()
indicates if this node should be executed asynchronously. |
boolean |
isLeaveAsync()
indicates if execution should proceed asynchronously when this node is left over any of the outgoing transitions. |
boolean |
isPreviousNeeded()
indicates if this node behaviour needs to know the previous node or
previous transition . |
boolean |
isSignalAsync()
indicates if signals should be processed asynchronously. |
Methods inherited from interface org.ow2.bonita.pvm.model.CompositeElement |
---|
findNode, getNode, getNodes, getNodesMap, hasNode, hasNodes |
Methods inherited from interface org.ow2.bonita.pvm.model.ObservableElement |
---|
getDbid, getName, getParent, getProcessDefinition, getProperty, getPropertyKeys, hasEvent |
Method Detail |
---|
java.util.List<Transition> getOutgoingTransitions()
Transition getDefaultTransition()
Transition getOutgoingTransition(java.lang.String transitionName)
getOutgoingTransitions()
) will be
returned.
transitionName
- is the name of the transition to take. A null value will match the
first unnamed transition.boolean hasOutgoingTransition(java.lang.String transitionName)
boolean hasOutgoingTransitions()
java.util.Map<java.lang.String,Transition> getOutgoingTransitionsMap()
Transition findOutgoingTransition(java.lang.String transitionName)
java.util.List<Transition> getIncomingTransitions()
boolean hasIncomingTransitions()
Node getParentNode()
ObservableElement.getParent()
in that it is restricted to the
parent nodes. It doesn't take into account the process definition.
boolean isExecutionAsync()
boolean isSignalAsync()
boolean isLeaveAsync()
boolean isPreviousNeeded()
the previous node
or
previous transition
. If this
property is set to true, the properties Execution#getPreviousNode()
and Execution#getPreviousTransition()
will be available to the node
behaviour when it is executed or signalled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |