public class DefaultBrainslugContext extends Object implements BrainslugContext
| Constructor and Description |
|---|
DefaultBrainslugContext(AsyncTriggerScheduler asyncTriggerScheduler,
AsyncTriggerStore asyncTriggerStore,
AsyncTriggerSchedulerOptions asyncTriggerSchedulerOptions,
AsyncFlowStartScheduler asyncFlowStartScheduler,
SchedulerOptions asyncFlowStartSchedulerOptions,
DefinitionStore definitionStore,
ListenerManager listenerManager,
CallDefinitionExecutor callDefinitionExecutor,
PredicateEvaluator predicateEvaluator,
Registry registry,
FlowExecutor flowExecutor,
TokenStore tokenStore) |
| Modifier and Type | Method and Description |
|---|---|
DefaultBrainslugContext |
addFlowDefinition(FlowDefinition flowDefinition) |
AsyncTriggerScheduler |
getAsyncTriggerScheduler() |
AsyncTriggerStore |
getAsyncTriggerStore() |
CallDefinitionExecutor |
getCallDefinitionExecutor() |
Collection<FlowDefinition> |
getDefinitions() |
DefinitionStore |
getDefinitionStore() |
FlowExecutor |
getFlowExecutor() |
ListenerManager |
getListenerManager() |
PredicateEvaluator |
getPredicateEvaluator() |
Registry |
getRegistry() |
TokenStore |
getTokenStore() |
BrainslugContext |
start() |
Identifier |
startFlow(Identifier definitionId,
Identifier startNodeId) |
Identifier |
startFlow(Identifier definitionId,
Identifier startNodeId,
ExecutionProperties properties) |
BrainslugContext |
stop() |
void |
trigger(TriggerContext context) |
public DefaultBrainslugContext(AsyncTriggerScheduler asyncTriggerScheduler, AsyncTriggerStore asyncTriggerStore, AsyncTriggerSchedulerOptions asyncTriggerSchedulerOptions, AsyncFlowStartScheduler asyncFlowStartScheduler, SchedulerOptions asyncFlowStartSchedulerOptions, DefinitionStore definitionStore, ListenerManager listenerManager, CallDefinitionExecutor callDefinitionExecutor, PredicateEvaluator predicateEvaluator, Registry registry, FlowExecutor flowExecutor, TokenStore tokenStore)
public DefaultBrainslugContext addFlowDefinition(FlowDefinition flowDefinition)
addFlowDefinition in interface BrainslugContextpublic Collection<FlowDefinition> getDefinitions()
getDefinitions in interface BrainslugContextpublic DefinitionStore getDefinitionStore()
public void trigger(TriggerContext context)
trigger in interface BrainslugContextpublic Identifier startFlow(Identifier definitionId, Identifier startNodeId)
startFlow in interface BrainslugContextpublic Identifier startFlow(Identifier definitionId, Identifier startNodeId, ExecutionProperties properties)
startFlow in interface BrainslugContextpublic BrainslugContext start()
start in interface BrainslugContextpublic BrainslugContext stop()
stop in interface BrainslugContextpublic ListenerManager getListenerManager()
public Registry getRegistry()
public PredicateEvaluator getPredicateEvaluator()
public FlowExecutor getFlowExecutor()
public TokenStore getTokenStore()
public AsyncTriggerScheduler getAsyncTriggerScheduler()
public AsyncTriggerStore getAsyncTriggerStore()
public CallDefinitionExecutor getCallDefinitionExecutor()
Copyright © 2014. All rights reserved.