Uses of Record Class
io.axoniq.framework.workflow.dsl.api.VersionStepDefinition
Packages that use VersionStepDefinition
Package
Description
Base Java DSL for defining workflow steps, providing the core primitives to execute work, wait for events, modify the
workflow payload, sleep, fail, and cancel a workflow.
Internal implementation of the workflow execution engine: the
WorkflowEngine, its scheduling, state and
storage, checkpointing/replay support, cancellation coordination, and the delegates implementing individual step
primitives.-
Uses of VersionStepDefinition in io.axoniq.framework.workflow.dsl.api
Methods in io.axoniq.framework.workflow.dsl.api that return VersionStepDefinitionModifier and TypeMethodDescriptionVersionStepDefinition.eventNameCustomizer(EventNameCustomizer eventNameCustomizer) Returns a copy of this definition with the provided event name customizer.VersionStepDefinition.newVersion(String newVersion) Returns a copy of this definition with the provided new version (semver string).VersionStepDefinition.primitiveMetadata(PrimitiveMetadata primitiveMetadata) Returns a copy of this definition with the provided primitive metadata.Returns a copy of this definition with the provided step name.Methods in io.axoniq.framework.workflow.dsl.api with parameters of type VersionStepDefinitionModifier and TypeMethodDescriptionbooleanWorkflowContext.migrateVersion(VersionStepDefinition stepDefinition) Migrates the workflow to the version carried bystepDefinitionfor the given changeId and returns whether the new branch is in effect for this workflow: Migration step already recorded → returnstrueiff the recorded version is>=the requested version. No step recorded yet, workflow already at the requested version → returnstruewithout publishing a redundant step. No step recorded yet, requested version strictly greater than current → publishes the migration step and returnstrue; if the replay-drift guard fires (in-flight workflow already ran past this point), returnsfalseand emits nothing. Downgrade attempt (requested<current, no step recorded) → throwsIllegalArgumentException. -
Uses of VersionStepDefinition in io.axoniq.framework.workflow.dsl.base
Methods in io.axoniq.framework.workflow.dsl.base that return VersionStepDefinitionModifier and TypeMethodDescriptionprotected VersionStepDefinitionBaseWorkflowContext.defaultMigrateVersionStepDefinition(String changeId, String newVersion) Creates the default version step definition used by theBaseWorkflowContext.migrateVersion(String, String, UnaryOperator)convenience overloads.Method parameters in io.axoniq.framework.workflow.dsl.base with type arguments of type VersionStepDefinitionModifier and TypeMethodDescriptionbooleanBaseWorkflowContext.migrateVersion(String changeId, String newVersion, UnaryOperator<VersionStepDefinition> customizer) Migrates this workflow tonewVersionforchangeIdand returns whether the new branch is in effect: Already recorded for thischangeId→ returnstrueiff the recorded version is>=newVersion. Not recorded but workflow already atnewVersion→ returnstruewithout publishing a redundant step. Not recorded andnewVersionstrictly greater → publishes a migration step and returnstrue; if the replay-drift guard fires (in-flight workflow ran past this point under old code), returnsfalse. Downgrades (requested<current, no recorded step) raiseIllegalArgumentException. -
Uses of VersionStepDefinition in io.axoniq.framework.workflow.runtime.execution
Methods in io.axoniq.framework.workflow.runtime.execution with parameters of type VersionStepDefinitionModifier and TypeMethodDescriptionbooleanAbstractWorkflowContext.migrateVersion(VersionStepDefinition stepDefinition)