Interface WorkflowConfiguration<T extends WorkflowContext>
- Type Parameters:
T- workflow context type.
public interface WorkflowConfiguration<T extends WorkflowContext>
Configures definition, context factory and correlation provider.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski, Stefan Dragisic
-
Method Summary
Modifier and TypeMethodDescriptionDefault event name customizer applied on workflow level.Returns the type of the workflow context.Classifies an exception that escaped the workflow body.Returns workflow context factory.Returns workflow definition.Returns workflow state factory.Returns workflow id provider.default StringReturns the workflow name.Returns workflow status change listeners.default StringWorkflow definition version (semver, e.g.
-
Method Details
-
getWorkflowContextType
Returns the type of the workflow context.- Returns:
- type of the workflow context.
-
workflowDefinition
WorkflowDefinition<T> workflowDefinition()Returns workflow definition.- Returns:
- workflow definition method expressed using workflow context.
-
workflowContextFactory
WorkflowContextFactory<T> workflowContextFactory()Returns workflow context factory.- Returns:
- factory for workflow context.
-
workflowExecutionFactory
WorkflowExecutionFactory workflowExecutionFactory()Returns workflow state factory.- Returns:
- factory for workflow state.
-
workflowIdProvider
WorkflowIdProvider workflowIdProvider()Returns workflow id provider.- Returns:
- provider responsible for creation of workflow id out of initial event message.
-
workflowName
Returns the workflow name.- Returns:
- name of the workflow.
-
workflowVersion
- Returns:
- workflow definition version.
-
eventNameCustomizer
EventNameCustomizer eventNameCustomizer()Default event name customizer applied on workflow level.- Returns:
- default customizer.
-
workflowStatusChangeListeners
Returns workflow status change listeners.- Returns:
- map of workflow status change listeners.
-
recoverableExceptionPolicy
Classifies an exception that escaped the workflow body. A recoverable exception pauses the workflow so a later run can succeed; any other exception fails the workflow.- Returns:
- the policy deciding whether an unhandled body exception is recoverable, by default
RecoverableWorkflowExceptionPolicy.DEFAULT
-