Interface WorkflowModule.WorkflowDefinitionPhase<C extends WorkflowContext>
- Type Parameters:
C- the type ofWorkflowContextused by the workflows in this module
- Enclosing interface:
WorkflowModule<C extends WorkflowContext>
public static interface WorkflowModule.WorkflowDefinitionPhase<C extends WorkflowContext>
Phase of the module's building process in which one or more workflow definitions are provided.
Workflow definitions can be built in two ways:
autodetected- inspects the given component for workflow annotations and automatically derives the workflow definition.declarative- allows manual construction through a series of builder phases coveringnaming,trigger conditions, andcustomizations.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacePhase of the workflow definition process in which the detection strategy is chosen.static interfaceTerminal phase of the workflow definition process, indicating the workflow definition is complete.static interfacePhase of the declarative workflow definition process in which the workflow is named.static interfacePhase of the declarative workflow definition process in which the trigger condition is defined.static interfacePhase of the declarative workflow definition process in which optional customizations can be applied. -
Method Summary
Modifier and TypeMethodDescriptiondefinition(Function<WorkflowModule.WorkflowDefinitionPhase.DetectionPhase<C>, WorkflowModule.WorkflowDefinitionPhase.FinalizedPhase<C>> definition) Defines the workflow definitions for this module.
-
Method Details
-
definition
WorkflowModule.OptionalPhase<C> definition(Function<WorkflowModule.WorkflowDefinitionPhase.DetectionPhase<C>, WorkflowModule.WorkflowDefinitionPhase.FinalizedPhase<C>> definition) Defines the workflow definitions for this module.The provided function receives a
WorkflowModule.WorkflowDefinitionPhase.DetectionPhaseand should return aWorkflowModule.WorkflowDefinitionPhase.FinalizedPhase, allowing users to chain one or more workflow definitions in a fluent manner.- Parameters:
definition- a function that defines one or more workflows via theWorkflowModule.WorkflowDefinitionPhase.DetectionPhase- Returns:
- the
WorkflowModule.OptionalPhasephase of this builder, for a fluent API
-