public class TokenFlowExecutor extends Object implements FlowExecutor
| Modifier and Type | Field and Description |
|---|---|
protected BrainslugContext |
context |
protected TokenStore |
tokenStore |
protected brainslug.flow.execution.impl.TokenFlowExecutor.EventHandler<TriggerEvent> |
triggerNodeHandler |
| Constructor and Description |
|---|
TokenFlowExecutor(TokenStore tokenStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
notify(FlowEvent event) |
void |
setContext(BrainslugContext context) |
Identifier |
startFlow(Identifier definitionId,
Identifier nodeId) |
protected void |
triggerNext(TriggerEvent event,
FlowNodeDefinition<?> node,
List<FlowNodeDefinition> next) |
protected BrainslugContext context
protected TokenStore tokenStore
protected brainslug.flow.execution.impl.TokenFlowExecutor.EventHandler<TriggerEvent> triggerNodeHandler
public TokenFlowExecutor(TokenStore tokenStore)
protected void triggerNext(TriggerEvent event, FlowNodeDefinition<?> node, List<FlowNodeDefinition> next)
public void notify(FlowEvent event)
notify in interface Subscriberpublic void setContext(BrainslugContext context)
setContext in interface ContextAwarepublic Identifier startFlow(Identifier definitionId, Identifier nodeId)
startFlow in interface FlowExecutorCopyright © 2014. All rights reserved.