public class DefaultWorkflowLifecycleStrategy extends java.lang.Object implements WorkflowLifecycleStrategy
This strategy is functionally equivalent to the way in which workflow operations were originally handled. If a workflow fails to start then an exception is thrown back to the parent channel.
In the adapter configuration file this class is aliased as default-workflow-lifecycle-strategy which is the preferred alternative to the fully qualified classname when building your configuration.
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
DefaultWorkflowLifecycleStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
close(java.util.List<Workflow> workflowList)
Close a list of workflows.
|
void |
closeConsumers(java.util.List<Workflow> workflowList) |
void |
init(java.util.List<Workflow> workflowList)
Initialise a list of channels.
|
void |
start(java.util.List<Workflow> workflowList)
Start a list of workflows.
|
void |
stop(java.util.List<Workflow> workflowList)
Stop a list of workflows.
|
void |
stopConsumers(java.util.List<Workflow> workflowList) |
public void start(java.util.List<Workflow> workflowList) throws CoreException
WorkflowLifecycleStrategy
start
in interface WorkflowLifecycleStrategy
workflowList
- a list of workflows that have already been initialised.CoreException
- wrapping any underlying exception.public void init(java.util.List<Workflow> workflowList) throws CoreException
WorkflowLifecycleStrategy
init
in interface WorkflowLifecycleStrategy
workflowList
- a list of workflows that require initialising.CoreException
- wrapping any underlying exception.public void stop(java.util.List<Workflow> workflowList)
WorkflowLifecycleStrategy
stop
in interface WorkflowLifecycleStrategy
workflowList
- a list of workflows that have previously been started.public void close(java.util.List<Workflow> workflowList)
WorkflowLifecycleStrategy
close
in interface WorkflowLifecycleStrategy
workflowList
- a list of workflows.public void stopConsumers(java.util.List<Workflow> workflowList)
public void closeConsumers(java.util.List<Workflow> workflowList)