Class WorkflowConfigurationDefaults

java.lang.Object
io.axoniq.framework.workflow.configuration.WorkflowConfigurationDefaults
All Implemented Interfaces:
ConfigurationEnhancer

@Internal @RegistrationScope(scope=CURRENT) public class WorkflowConfigurationDefaults extends Object implements ConfigurationEnhancer
Defaults for workflow configuration.
Since:
5.4.0
Author:
Simon Zambrovski
  • Field Details

    • WORKFLOW_ENGINE_EXECUTOR

      public static final String 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:
    • WORKFLOW_DEFAULTS_ENHANCER_ORDER

      public static final int WORKFLOW_DEFAULTS_ENHANCER_ORDER
      Order 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

      public void enhance(ComponentRegistry componentRegistry)
      Description copied from interface: ConfigurationEnhancer
      Enhances the given registry with, for example, additional components and decorators.
      Specified by:
      enhance in interface ConfigurationEnhancer
      Parameters:
      componentRegistry - The registry instance to enhance.
    • order

      public int order()
      Description copied from interface: ConfigurationEnhancer
      Returns 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 0 when not set.

      Specified by:
      order in interface ConfigurationEnhancer
      Returns:
      The order in which this enhancer should be invoked.