public class DefaultNodeExecutor<T extends FlowNodeDefinition> extends Object implements FlowNodeExecutor<T>
| Modifier and Type | Field and Description |
|---|---|
protected TokenStore |
tokenStore |
| Constructor and Description |
|---|
DefaultNodeExecutor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
consumeAllNodeTokens(Identifier instanceId,
Identifier nodeId) |
FlowNodeExecutionResult |
execute(T node,
ExecutionContext execution) |
protected void |
removeTokens(Identifier instanceId,
List<Token> tokens) |
protected FlowNodeExecutionResult |
takeAll(FlowNodeDefinition<?> node) |
protected FlowNodeExecutionResult |
takeNone() |
DefaultNodeExecutor<T> |
withTokenStore(TokenStore tokenStore) |
protected TokenStore tokenStore
public DefaultNodeExecutor<T> withTokenStore(TokenStore tokenStore)
public FlowNodeExecutionResult execute(T node, ExecutionContext execution)
execute in interface FlowNodeExecutor<T extends FlowNodeDefinition>protected void consumeAllNodeTokens(Identifier instanceId, Identifier nodeId)
protected void removeTokens(Identifier instanceId, List<Token> tokens)
protected FlowNodeExecutionResult takeAll(FlowNodeDefinition<?> node)
protected FlowNodeExecutionResult takeNone()
Copyright © 2014. All rights reserved.