Class WorkflowConfigurationDefaults
- All Implemented Interfaces:
ConfigurationEnhancer
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of theSnapshotPolicycomponent of the running-workflow list.static final intOrder for this enhancer.static final StringName of the dedicated executor service component used for workflow-body work and workflow-event publication.static final StringName of theSnapshotPolicycomponent of the workflow state. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenhance(ComponentRegistry componentRegistry) intorder()Returns the relative order this enhancer should be invoked in, compared to other instances.
-
Field Details
-
WORKFLOW_ENGINE_EXECUTOR
Name of the dedicated executor service component used for workflow-body work and workflow-event publication.The default uses a virtual thread per task. A bounded future-resolution wait therefore blocks only its workflow task, not an event processor or another shared executor. Applications that replace this component should retain that isolation or size their executor for the configured resolver timeout.
- See Also:
-
RUNNING_WORKFLOWS_SNAPSHOT_POLICY
Name of theSnapshotPolicycomponent of the running-workflow list.The list is snapshotted only when a component is registered under this name. Snapshotting then requires a
SnapshotStorecomponent.- See Also:
-
WORKFLOW_STATE_SNAPSHOT_POLICY
Name of theSnapshotPolicycomponent of the workflow state.The state of each workflow instance is snapshotted only when a component is registered under this name. Snapshotting then requires a
SnapshotStorecomponent.- See Also:
-
WORKFLOW_DEFAULTS_ENHANCER_ORDER
public static final int WORKFLOW_DEFAULTS_ENHANCER_ORDEROrder for this enhancer.Enhancer math: register the tag-resolver decorator before event sourcing creates the event store.
- See Also:
-
-
Constructor Details
-
WorkflowConfigurationDefaults
public WorkflowConfigurationDefaults()
-
-
Method Details
-
enhance
Description copied from interface:ConfigurationEnhancer- Specified by:
enhancein interfaceConfigurationEnhancer- Parameters:
componentRegistry- The registry instance to enhance.
-
order
public int order()Description copied from interface:ConfigurationEnhancerReturns the relative order this enhancer should be invoked in, compared to other instances.Use lower (negative) values for enhancers providing sensible defaults, and higher values for enhancers that should be able to override values potentially previously set. Defaults to
0when not set.- Specified by:
orderin interfaceConfigurationEnhancer- Returns:
- The order in which this enhancer should be invoked.
-