public class BeanAsyncCallActivity extends AbstractNode
| Constructor and Description |
|---|
BeanAsyncCallActivity(int id,
String bean,
String method,
InputMapping<?>[] argumentsMappings,
OutputMapping resultMapping) |
BeanAsyncCallActivity(int id,
String name,
String bean,
String method,
InputMapping<?>[] argumentsMappings,
OutputMapping resultMapping) |
| 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.
|
ArrayMapping |
getArgumentsMapping() |
String |
getBean() |
String |
getMethod() |
OutputMapping |
getResultMapping() |
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 BeanAsyncCallActivity(int id,
String bean,
String method,
InputMapping<?>[] argumentsMappings,
OutputMapping resultMapping)
public BeanAsyncCallActivity(int id,
String name,
String bean,
String method,
InputMapping<?>[] argumentsMappings,
OutputMapping resultMapping)
public String getBean()
public String getMethod()
public ArrayMapping getArgumentsMapping()
public OutputMapping getResultMapping()
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.