public interface Token
Token points to a Node in a Graph. The set of active tokens in a GraphInstance mark the graph instance's flow state.| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Returns the token's id.
|
GraphInstance |
getInstance()
Returns the
GraphInstance that this token belongs to. |
Node |
getNode()
Returns the
Node that this token is pointing to. |
Token |
getParent()
Returns the parent token which was involved in creating this token.
|
boolean |
isActive()
Returns whether the token is active.
|
void |
markInactive()
Marks this token as inactive, in the sense that it no longer represents
an active part of the workflow instance.
|
void |
setNode(Node node)
Sets the
Node that the token is pointing to. |
int getId()
Node getNode()
Node that this token is pointing to.void setNode(Node node)
Node that the token is pointing to.node - the new node to point toGraphInstance getInstance()
GraphInstance that this token belongs to.Token getParent()
GraphInstance's main token (the token that begins
executing at the start node), null will be returned.null for a main tokenvoid markInactive()
boolean isActive()
Copyright © 2018. All rights reserved.