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) |
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 FlowDefinition getDefinitionById(Identifier flowId)
getDefinitionById in interface BrainslugContextpublic DefinitionStore getDefinitionStore()
public void trigger(TriggerContext context)
trigger in interface BrainslugContextpublic Identifier startFlow(FlowDefinition flowDefinition)
startFlow in interface BrainslugContextpublic Identifier startFlow(FlowDefinition flowDefinition, FlowProperties properties)
startFlow in interface BrainslugContextpublic Identifier startFlow(FlowDefinition flowDefinition, FlowNodeDefinition startNode, FlowProperties properties)
startFlow in interface BrainslugContextpublic Identifier startFlow(Identifier definitionId)
startFlow in interface BrainslugContextpublic Identifier startFlow(Identifier definitionId, Identifier startNodeId)
startFlow in interface BrainslugContextpublic Identifier startFlow(Identifier definitionId, FlowProperties properties)
startFlow in interface BrainslugContextpublic Identifier startFlow(Identifier definitionId, Identifier startNodeId, FlowProperties properties)
startFlow in interface BrainslugContextpublic BrainslugContext init()
init in interface BrainslugContextpublic BrainslugContext destroy()
destroy in interface BrainslugContextpublic <T> BrainslugContext registerService(Class<T> serviceClass, T serviceInstance)
registerService in interface BrainslugContextpublic <T> T getService(Class<T> serviceClass)
getService 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 © 2015. All rights reserved.