Package com.adaptris.core
Class DefaultWorkflowLifecycleStrategy
java.lang.Object
com.adaptris.core.DefaultWorkflowLifecycleStrategy
- All Implemented Interfaces:
WorkflowLifecycleStrategy
- Direct Known Subclasses:
WorkflowRetryAndContinue
Default strategy for starting workflows.
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Close a list of workflows.void
closeConsumers
(List<Workflow> workflowList) void
Initialise a list of channels.void
Start a list of workflows.void
Stop a list of workflows.void
stopConsumers
(List<Workflow> workflowList)
-
Field Details
-
log
protected transient org.slf4j.Logger log
-
-
Constructor Details
-
DefaultWorkflowLifecycleStrategy
public DefaultWorkflowLifecycleStrategy()
-
-
Method Details
-
start
Description copied from interface:WorkflowLifecycleStrategy
Start a list of workflows.- Specified by:
start
in interfaceWorkflowLifecycleStrategy
- Parameters:
workflowList
- a list of workflows that have already been initialised.- Throws:
CoreException
- wrapping any underlying exception.
-
init
Description copied from interface:WorkflowLifecycleStrategy
Initialise a list of channels.- Specified by:
init
in interfaceWorkflowLifecycleStrategy
- Parameters:
workflowList
- a list of workflows that require initialising.- Throws:
CoreException
- wrapping any underlying exception.
-
stop
Description copied from interface:WorkflowLifecycleStrategy
Stop a list of workflows.- Specified by:
stop
in interfaceWorkflowLifecycleStrategy
- Parameters:
workflowList
- a list of workflows that have previously been started.
-
close
Description copied from interface:WorkflowLifecycleStrategy
Close a list of workflows.- Specified by:
close
in interfaceWorkflowLifecycleStrategy
- Parameters:
workflowList
- a list of workflows.
-
stopConsumers
-
closeConsumers
-