public class ThrowEscalation extends AbstractNode
+--[main]-------------[escalation]--[success-activity]--------+
[1]--[AND]--[escalate-event1]--[escalation]--[escalation1-resolution]--[AND]--[13]
+--[escalate-event2]--[escalation]--[escalation2-resolution]--+
| Constructor and Description |
|---|
ThrowEscalation(int id) |
ThrowEscalation(int id,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(GraphEngine engine,
Token token)
Called when the
GraphEngine cancels the execution of a
Token, that is currently pointing to this node and is in a wait
state. |
void |
execute(GraphEngine engine,
Token token)
Performs node specific logic.
|
void |
store(Environment environment,
Object result)
When a token execution on a node completes and returns control back to
the engine, then the engine mandates the node to store the node execution
result into the graph instance's environment.
|
getId, getName, toStringpublic ThrowEscalation(int id)
public ThrowEscalation(int id,
String name)
public void execute(GraphEngine engine, Token token)
NodeGraphEngineFacade#complete(WorkItem) method
must be called to continue executing the GraphInstance.engine - the GraphEngine which is performing the executiontoken - the Token which is currently executing in this nodepublic void cancel(GraphEngine engine, Token token)
NodeGraphEngine cancels the execution of a
Token, that is currently pointing to this node and is in a wait
state.engine - the GraphEngine which is performing the executiontoken - the Token pointing to this nodepublic void store(Environment environment, Object result)
Nodeenvironment - the environment to store the result inresult - the result to be storedCopyright © 2018. All rights reserved.