Interface WorkflowModule.WorkflowDefinitionPhase.DetectionPhase<C extends WorkflowContext>
- Type Parameters:
C- the type ofWorkflowContextused by the workflows in this module
- Enclosing interface:
WorkflowModule.WorkflowDefinitionPhase<C extends WorkflowContext>
public static interface WorkflowModule.WorkflowDefinitionPhase.DetectionPhase<C extends WorkflowContext>
Phase of the workflow definition process in which the detection strategy is chosen.
The detection strategy determines how the workflow definition and its trigger conditions are derived, either automatically from annotations or manually through a declarative builder.
-
Method Summary
Modifier and TypeMethodDescriptionautodetected(ComponentBuilder<Object> componentBuilder) Builds a workflow definition by auto-detecting workflow annotations on the given component.declarative(ComponentBuilder<WorkflowDefinition<C>> componentBuilder) Starts building a workflow definition declaratively from the givenWorkflowDefinition.
-
Method Details
-
declarative
WorkflowModule.WorkflowDefinitionPhase.NamingPhase<C> declarative(ComponentBuilder<WorkflowDefinition<C>> componentBuilder) Starts building a workflow definition declaratively from the givenWorkflowDefinition.This approach allows manual construction of the workflow through subsequent builder phases:
naming,trigger definition, andcustomization.- Parameters:
componentBuilder- aComponentBuilderconstructing theWorkflowDefinition- Returns:
- the
WorkflowModule.WorkflowDefinitionPhase.NamingPhasephase of this builder, for a fluent API
-
autodetected
WorkflowModule.WorkflowDefinitionPhase.FinalizedPhase<C> autodetected(ComponentBuilder<Object> componentBuilder) Builds a workflow definition by auto-detecting workflow annotations on the given component.The component is inspected for workflow annotations, from which the workflow definition, name, trigger conditions, and customizations are automatically derived.
- Parameters:
componentBuilder- aComponentBuilderconstructing the annotated workflow component- Returns:
- the
WorkflowModule.WorkflowDefinitionPhase.FinalizedPhaseof this builder, for a fluent API
-