Class WorkflowAutoConfiguration
java.lang.Object
io.axoniq.framework.springboot.autoconfig.WorkflowAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(WorkflowEngine.class)
@ConditionalOnProperty(prefix="axon.workflow",
name="enabled",
matchIfMissing=true)
@EnableConfigurationProperties(WorkflowProperties.class)
public class WorkflowAutoConfiguration
extends Object
Autoconfiguration for workflow infrastructure.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrunningWorkflowsSnapshotPolicy(WorkflowProperties workflowProperties) Provides theSnapshotPolicyof the running-workflow list when snapshots are enabled.static WorkflowDefinitionLookupProvides Spring workflow definition lookup.workflowStateSnapshotPolicy(WorkflowProperties workflowProperties) Provides theSnapshotPolicyof the state of each workflow instance when snapshots are enabled.
-
Constructor Details
-
WorkflowAutoConfiguration
public WorkflowAutoConfiguration()
-
-
Method Details
-
workflowDefinitionLookup
Provides Spring workflow definition lookup.- Returns:
- The lookup for annotations for later workflow handling registrations.
-
runningWorkflowsSnapshotPolicy
@Bean("RunningWorkflowsSnapshotPolicy") @ConditionalOnProperty(prefix="axon.workflow.snapshots", name="enabled", havingValue="true") public SnapshotPolicy runningWorkflowsSnapshotPolicy(WorkflowProperties workflowProperties) Provides theSnapshotPolicyof the running-workflow list when snapshots are enabled.- Parameters:
workflowProperties- theWorkflowPropertiesholding the snapshot settings- Returns:
- the
SnapshotPolicyof the running-workflow list
-
workflowStateSnapshotPolicy
@Bean("WorkflowStateSnapshotPolicy") @ConditionalOnProperty(prefix="axon.workflow.snapshots", name="enabled", havingValue="true") public SnapshotPolicy workflowStateSnapshotPolicy(WorkflowProperties workflowProperties) Provides theSnapshotPolicyof the state of each workflow instance when snapshots are enabled.- Parameters:
workflowProperties- theWorkflowPropertiesholding the snapshot settings- Returns:
- the
SnapshotPolicyof the state of each workflow instance
-