Uses of Interface
io.axoniq.framework.workflow.dsl.api.WorkflowStepResult
Packages that use WorkflowStepResult
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.
Convenience Java DSL built on top of the base DSL, adding shortcuts for common workflow steps such as executing
without extra input payload, waiting for a typed event, and replacing the workflow payload outright.
Internal runtime contracts for workflow execution, command dispatch, configuration, and event publication.
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 WorkflowStepResult in io.axoniq.framework.workflow.dsl.api
Subinterfaces of WorkflowStepResult in io.axoniq.framework.workflow.dsl.apiModifier and TypeInterfaceDescriptioninterfaceResult type that all combinator methods (AnyMatchCombinator.anyMatch(java.util.function.Predicate<io.axoniq.framework.workflow.dsl.api.WorkflowStepResult>, io.axoniq.framework.workflow.dsl.api.WorkflowStepResult...),NoneMatchCombinator.noneMatch(java.util.function.Predicate<io.axoniq.framework.workflow.dsl.api.WorkflowStepResult>, io.axoniq.framework.workflow.dsl.api.WorkflowStepResult...),AllMatchCombinator.allMatch(java.util.function.Predicate<io.axoniq.framework.workflow.dsl.api.WorkflowStepResult>, io.axoniq.framework.workflow.dsl.api.WorkflowStepResult...)) are required to return.Methods in io.axoniq.framework.workflow.dsl.api that return WorkflowStepResultModifier and TypeMethodDescriptionWorkflowContext.execute(ExecuteStepDefinition stepDefinition) Executes a step asynchronously from a DSL step definition.WorkflowContext.modifyPayload(PayloadStepDefinition stepDefinition) Applies a payload modification asynchronously from a DSL step definition.WorkflowContext.publish(PublishStepDefinition stepDefinition) Publishes a business event as a durable workflow step from a DSL step definition.WorkflowContext.waitForEvent(WaitForStepDefinition stepDefinition) Starts an asynchronous wait step from a DSL step definition.Methods in io.axoniq.framework.workflow.dsl.api that return types with arguments of type WorkflowStepResultModifier and TypeMethodDescriptionCombinatorWorkflowStepResult.matched()Returns all completed sub-results that satisfy the combinator's predicate at the time of this call.CombinatorWorkflowStepResult.unmatched()Returns all other sub-results that are not inCombinatorWorkflowStepResult.matched().Methods in io.axoniq.framework.workflow.dsl.api with parameters of type WorkflowStepResultModifier and TypeMethodDescriptionWorkflowContext.allMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Returns a result that completes successfully when every supplied result matches the predicate.WorkflowContext.anyMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Returns a result that completes successfully when any supplied result matches the predicate.WorkflowContext.noneMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Returns a result that completes successfully when no supplied result matches the predicate.Method parameters in io.axoniq.framework.workflow.dsl.api with type arguments of type WorkflowStepResultModifier and TypeMethodDescriptionWorkflowContext.allMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Returns a result that completes successfully when every supplied result matches the predicate.WorkflowContext.anyMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Returns a result that completes successfully when any supplied result matches the predicate.WorkflowContext.noneMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Returns a result that completes successfully when no supplied result matches the predicate. -
Uses of WorkflowStepResult in io.axoniq.framework.workflow.dsl.base
Methods in io.axoniq.framework.workflow.dsl.base that return WorkflowStepResultModifier and TypeMethodDescriptionBaseWorkflowContext.execute(String stepName, Map<String, @Nullable Object> inputPayload, PayloadProcessor processor) Starts an execute step with the default step definition settings.BaseWorkflowContext.execute(String stepName, Map<String, @Nullable Object> inputPayload, PayloadProcessor processor, UnaryOperator<ExecuteStepDefinition> customizer) Starts an execute step that invokes the given payload processor.BaseWorkflowContext.modifyPayload(String stepName, PayloadModification modification) Starts a payload update step with default settings.BaseWorkflowContext.modifyPayload(String stepName, PayloadModification modification, UnaryOperator<PayloadStepDefinition> customizer) Starts a step that updates the workflow payload.BaseWorkflowContext.publish(String stepName, EventMessage event, UnaryOperator<PublishStepDefinition> customizer) Publishes a business event as a durable workflow step and returns a handle to await later.BaseWorkflowContext.sleep(String stepName, UnaryOperator<WaitForStepDefinition> customizer) Starts a sleep step.BaseWorkflowContext.waitForEvent(String stepName, EventCondition eventCondition) Starts a wait-for step with default settings.BaseWorkflowContext.waitForEvent(String stepName, EventCondition eventCondition, UnaryOperator<WaitForStepDefinition> customizer) Starts a wait-for step that completes when a matching event is observed. -
Uses of WorkflowStepResult in io.axoniq.framework.workflow.dsl.simple
Methods in io.axoniq.framework.workflow.dsl.simple that return WorkflowStepResultModifier and TypeMethodDescriptionSimpleWorkflowContext.execute(String stepName, PayloadProcessor processor) Starts an execute step with an empty step-local input payload.SimpleWorkflowContext.execute(String stepName, PayloadProcessor processor, UnaryOperator<ExecuteStepDefinition> customizer) Starts an execute step with an empty step-local input payload and a customized step definition.Publishes a business event given as payload.Publishes a business event given as payload and metadata.SimpleWorkflowContext.publish(String stepName, EventMessage event) Publishes a business event as a durable workflow step and returns a handle to await later.SimpleWorkflowContext.waitForEvent(String stepName, Class<?> eventType, Associations conditions) Waits for an event of the given type that matches the provided association conditions.SimpleWorkflowContext.waitForEvent(String stepName, Class<?> eventType, Associations conditions, UnaryOperator<WaitForStepDefinition> customizer) Waits for an event of the given type that matches the provided association conditions. -
Uses of WorkflowStepResult in io.axoniq.framework.workflow.runtime.api.execution.context
Methods in io.axoniq.framework.workflow.runtime.api.execution.context that return WorkflowStepResultModifier and TypeMethodDescriptionExecutePrimitive.execute(ExecutePrimitive.ExecuteCommand command) Execute primitive.PayloadPrimitive.modifyPayload(PayloadPrimitive.ModifyPayloadCommand command) Applies payload modification.PublishPrimitive.publish(PublishPrimitive.PublishCommand command) Publishes the event carried by the givencommandas a durable step and waits until the step is recorded in the workflow state.VersionPrimitive.version(VersionPrimitive.VersionCommand command) Records (or reads back) the migration step for the givenstepName.WaitForPrimitive.waitForEvent(WaitForPrimitive.WaitForCommand command) Wait for event.Methods in io.axoniq.framework.workflow.runtime.api.execution.context with parameters of type WorkflowStepResultModifier and TypeMethodDescriptionAllMatchCombinator.allMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Guard combinator — ensures all completed results match the given predicate.AnyMatchCombinator.anyMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Predicate-based combinator — resolves when the first completed result matches the given predicate.NoneMatchCombinator.noneMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Guard combinator — ensures no completed result matches the given predicate.Method parameters in io.axoniq.framework.workflow.runtime.api.execution.context with type arguments of type WorkflowStepResultModifier and TypeMethodDescriptionAllMatchCombinator.allMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Guard combinator — ensures all completed results match the given predicate.AnyMatchCombinator.anyMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Predicate-based combinator — resolves when the first completed result matches the given predicate.NoneMatchCombinator.noneMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Guard combinator — ensures no completed result matches the given predicate. -
Uses of WorkflowStepResult in io.axoniq.framework.workflow.runtime.execution
Classes in io.axoniq.framework.workflow.runtime.execution that implement WorkflowStepResultModifier and TypeClassDescriptionclassWorkflow Step result based on the Workflow State.Methods in io.axoniq.framework.workflow.runtime.execution that return WorkflowStepResultModifier and TypeMethodDescriptionstatic WorkflowStepResultConstructs cancelled result.static WorkflowStepResultConstructs a completed result that carries no payload — for primitives whose recorded value is read fromWorkflowStaterather than from the result handle (e.g. the migration primitive).static WorkflowStepResultWorkflowStepResults.completed(String stepName, @Nullable Object payload, EventConverter converter) Constructs completed result.AbstractWorkflowContext.execute(ExecuteStepDefinition stepDefinition) ExecuteDelegate.execute(ExecutePrimitive.ExecuteCommand command) RetryableExecuteDelegate.execute(ExecutePrimitive.ExecuteCommand command) WorkflowExecutionOperationsDelegation.execute(ExecutePrimitive.ExecuteCommand command) Executes the step described by the given command.static WorkflowStepResultConstructs failed result.AbstractWorkflowContext.modifyPayload(PayloadStepDefinition stepDefinition) PayloadDelegate.modifyPayload(PayloadPrimitive.ModifyPayloadCommand command) WorkflowExecutionOperationsDelegation.modifyPayload(PayloadPrimitive.ModifyPayloadCommand command) Changes the workflow payload according to the given command.AbstractWorkflowContext.publish(PublishStepDefinition stepDefinition) PublishDelegate.publish(PublishPrimitive.PublishCommand command) WorkflowExecutionOperationsDelegation.publish(PublishPrimitive.PublishCommand command) Publishes a business event as a durable workflow step according to the given command.static WorkflowStepResultAbstractStepExecutor.stateBased(String stepName, EventNameCustomizer eventNameCustomizer, WorkflowExecution workflowExecution) Creates a durable result handle for a step while retaining its event-name customizer for later cancellation.static WorkflowStepResultConstructs timed out result.VersionDelegate.version(VersionPrimitive.VersionCommand command) WorkflowExecutionOperationsDelegation.version(VersionPrimitive.VersionCommand command) Resolves the workflow version according to the given command.AbstractWorkflowContext.waitForEvent(WaitForStepDefinition stepDefinition) WaitForDelegate.waitForEvent(WaitForPrimitive.WaitForCommand command) WorkflowExecutionOperationsDelegation.waitForEvent(WaitForPrimitive.WaitForCommand command) Waits for an event according to the given command.Methods in io.axoniq.framework.workflow.runtime.execution with parameters of type WorkflowStepResultModifier and TypeMethodDescriptionAbstractWorkflowContext.allMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) AllMatchCombinatorDelegate.allMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) WorkflowExecutionOperationsDelegation.allMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Combines step results when all results satisfy the predicate.AbstractWorkflowContext.anyMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) AnyMatchCombinatorDelegate.anyMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) WorkflowExecutionOperationsDelegation.anyMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Combines step results when any result satisfies the predicate.AbstractWorkflowContext.noneMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) NoneMatchCombinatorDelegate.noneMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) WorkflowExecutionOperationsDelegation.noneMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Combines step results when no result satisfies the predicate.Method parameters in io.axoniq.framework.workflow.runtime.execution with type arguments of type WorkflowStepResultModifier and TypeMethodDescriptionAbstractWorkflowContext.allMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) AllMatchCombinatorDelegate.allMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) WorkflowExecutionOperationsDelegation.allMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Combines step results when all results satisfy the predicate.AbstractWorkflowContext.anyMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) AnyMatchCombinatorDelegate.anyMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) WorkflowExecutionOperationsDelegation.anyMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Combines step results when any result satisfies the predicate.AbstractWorkflowContext.noneMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) NoneMatchCombinatorDelegate.noneMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) WorkflowExecutionOperationsDelegation.noneMatch(Predicate<WorkflowStepResult> predicate, WorkflowStepResult... results) Combines step results when no result satisfies the predicate.