public interface BrainslugContext
| Modifier and Type | Method and Description |
|---|---|
BrainslugContext |
addFlowDefinition(FlowDefinition flowDefinition)
add a flow definition to the definition store to make it
executable
|
Collection<FlowDefinition> |
getDefinitions() |
BrainslugContext |
start()
start the async schedulers (if enabled)
|
Identifier |
startFlow(Identifier definitionId,
Identifier startNodeId)
start the flow at the given startNodeId
|
Identifier |
startFlow(Identifier definitionId,
Identifier startNodeId,
ExecutionProperties properties)
start the flow at the given startNodeId
|
BrainslugContext |
stop()
stop the async schedulers (if enabled)
|
void |
trigger(TriggerContext context)
trigger a node in a given instance and definition
for further exeution
|
BrainslugContext addFlowDefinition(FlowDefinition flowDefinition)
flowDefinition - the flow definition to addCollection<FlowDefinition> getDefinitions()
void trigger(TriggerContext context)
context - the definition of the trigger environmentIdentifier startFlow(Identifier definitionId, Identifier startNodeId)
definitionId - the definition to be startedstartNodeId - the node in the definition to start atIdentifier startFlow(Identifier definitionId, Identifier startNodeId, ExecutionProperties properties)
definitionId - the definition to be startedstartNodeId - the node in the definition to start atproperties - the properties to be available during executionBrainslugContext start()
BrainslugContext stop()
Copyright © 2014. All rights reserved.