| Constructor and Description |
|---|
TokenImpl() |
| 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 |
setActive(boolean isActive) |
void |
setId(int id) |
void |
setInstance(GraphInstance instance) |
void |
setNode(Node node)
Sets the
Node that the token is pointing to. |
void |
setParent(Token parent) |
public int getId()
Tokenpublic void setId(int id)
public Node getNode()
TokenNode that this token is pointing to.public void setNode(Node node)
TokenNode that the token is pointing to.public GraphInstance getInstance()
TokenGraphInstance that this token belongs to.getInstance in interface Tokenpublic void setInstance(GraphInstance instance)
public Token getParent()
TokenGraphInstance's main token (the token that begins
executing at the start node), null will be returned.public void setParent(Token parent)
public boolean isActive()
Tokenpublic void setActive(boolean isActive)
public void markInactive()
TokenmarkInactive in interface TokenCopyright © 2018. All rights reserved.