public class CreateNewInstanceActivity extends AbstractNode
| Constructor and Description |
|---|
CreateNewInstanceActivity(int id,
InputMapping<String> graphNameMapping,
InputMapping<Integer> graphVersionMapping,
InputMapping<String> label1Mapping,
InputMapping<String> label2Mapping,
MapMapping argumentsMapping) |
CreateNewInstanceActivity(int id,
String name,
InputMapping<String> graphNameMapping,
InputMapping<Integer> graphVersionMapping,
InputMapping<String> label1Mapping,
InputMapping<String> label2Mapping,
MapMapping argumentsMapping) |
CreateNewInstanceActivity(int id,
String graphName,
Integer graphVersion,
String label1,
String label2,
MapMapping argumentsMapping) |
CreateNewInstanceActivity(int id,
String name,
String graphName,
Integer graphVersion,
String label1,
String label2,
MapMapping argumentsMapping) |
| 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.
|
MapMapping |
getArgumentsMapping() |
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 CreateNewInstanceActivity(int id,
String graphName,
Integer graphVersion,
String label1,
String label2,
MapMapping argumentsMapping)
public CreateNewInstanceActivity(int id,
String name,
String graphName,
Integer graphVersion,
String label1,
String label2,
MapMapping argumentsMapping)
public CreateNewInstanceActivity(int id,
InputMapping<String> graphNameMapping,
InputMapping<Integer> graphVersionMapping,
InputMapping<String> label1Mapping,
InputMapping<String> label2Mapping,
MapMapping argumentsMapping)
public CreateNewInstanceActivity(int id,
String name,
InputMapping<String> graphNameMapping,
InputMapping<Integer> graphVersionMapping,
InputMapping<String> label1Mapping,
InputMapping<String> label2Mapping,
MapMapping argumentsMapping)
public MapMapping getArgumentsMapping()
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.