public interface Graph
Graph corresponds to a workflow definition. It has a set of
Nodes, which correspond to actions that need to be taken for the
workflow to complete. It also has a set of Transitions which define
the order of execution between the nodes.| Modifier and Type | Method and Description |
|---|---|
boolean |
getKeepHistory() |
String |
getName()
Returns the graph's name, which should be unique.
|
Node |
getNode(int id)
Returns the graph's node with the given id.
|
Collection<Node> |
getNodes()
Returns the list of all nodes in the graph.
|
List<Transition> |
getOutputTransitions(Node node)
Returns a list of transitions which have the given node as their starting
point.
|
Transition |
getOutputTransitions(Node node,
String name)
Returns the transition which has the given node as their starting point
and the given name, or
null if no such transition exists. |
Node |
getStartNode()
Returns the graph's start node.
|
List<Transition> |
getTransitions()
Returns the list of all transitions in the graph.
|
int |
getVersion()
Returns the version number of the graph.
|
String getName()
int getVersion()
boolean getKeepHistory()
Node getStartNode()
GraphInstance. A non-empty graph must define
a start node.Node getNode(int id)
null if the
graph does not contain a node with the given id.Collection<Node> getNodes()
List<Transition> getTransitions()
List<Transition> getOutputTransitions(Node node)
null.node - A node belonging to this graphTransition getOutputTransitions(Node node, String name)
null if no such transition exists.node - A node belonging to this graphname - A transition nameCopyright © 2018. All rights reserved.