Uses of Interface
io.axoniq.framework.workflow.runtime.api.execution.context.WorkflowExecution
Packages that use WorkflowExecution
Package
Description
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.The given/when/then style test fixture API for workflow runtime tests, including the staged
WorkflowTestFixture, the lower-level WorkflowTestDriver, and the shared testing state and services
backing both.Test-only utility components used by the workflow test fixture and configuration, such as manual execution and
scheduling controls, a mutable test clock, id generation, event publication helpers, and a pretty-printing recording
event store.
-
Uses of WorkflowExecution in io.axoniq.framework.workflow.runtime.api.execution.context
Methods in io.axoniq.framework.workflow.runtime.api.execution.context that return WorkflowExecutionModifier and TypeMethodDescriptionWorkflowExecutionFactory.create(WorkflowContext workflowContext) Creates workflow execution for a given workflow context.Methods in io.axoniq.framework.workflow.runtime.api.execution.context that return types with arguments of type WorkflowExecutionModifier and TypeMethodDescription@Nullable Consumer<WorkflowExecution> WorkflowExecution.getNextTask()Returns and removes the next queued task.Method parameters in io.axoniq.framework.workflow.runtime.api.execution.context with type arguments of type WorkflowExecutionModifier and TypeMethodDescriptionvoidWorkflowExecution.appendTask(Consumer<WorkflowExecution> task) Appends a task for execution by the workflow control thread.WorkflowExecution.execute(Consumer<WorkflowExecution> terminationHandler) Executes the workflow body. -
Uses of WorkflowExecution in io.axoniq.framework.workflow.runtime.execution
Classes in io.axoniq.framework.workflow.runtime.execution that implement WorkflowExecutionModifier and TypeClassDescriptionfinal classWorkflow instance implementation.Fields in io.axoniq.framework.workflow.runtime.execution declared as WorkflowExecutionModifier and TypeFieldDescriptionprotected final WorkflowExecutionAbstractStepExecutor.workflowExecutionMethods in io.axoniq.framework.workflow.runtime.execution that return WorkflowExecutionModifier and TypeMethodDescriptionWorkflowContextAdoptingExecutionFactory.create(WorkflowContext workflowContext) Removes the workflow execution associated with the given identifier.InMemoryWorkflowExecutionRepository.save(String workflowId, Supplier<WorkflowExecution> factory) WorkflowExecutionRepository.save(String workflowId, Supplier<WorkflowExecution> factory) Atomically stores a new workflow execution if no execution exists for the given workflow identifier.Methods in io.axoniq.framework.workflow.runtime.execution that return types with arguments of type WorkflowExecutionModifier and TypeMethodDescriptionInMemoryWorkflowExecutionRepository.findAll(WorkflowStateQuery query) InMemoryWorkflowExecutionRepository.findAll(Predicate<WorkflowExecution> predicate) default Set<WorkflowExecution> WorkflowExecutionRepository.findAll()Returns all stored workflow executions, with at most one execution per workflow identifier.WorkflowExecutionRepository.findAll(WorkflowStateQuery query) Returns all stored workflow executions whose state matches a query.WorkflowExecutionRepository.findAll(Predicate<WorkflowExecution> predicate) Returns all stored workflow executions matching the given predicate, with at most one execution per workflow identifier.Finds a workflow execution by its identifier.@Nullable Consumer<WorkflowExecution> SimpleWorkflowExecution.getNextTask()WorkflowEngine.workflowExecutions()Retrieve all workflow executions.Methods in io.axoniq.framework.workflow.runtime.execution with parameters of type WorkflowExecutionModifier and TypeMethodDescriptionDefaultExecuteStepActionResolver.resolve(WorkflowExecutionOperations workflowExecutionOperations, WorkflowExecution workflowExecution, ExecutePrimitive.ExecuteCommand command) ExecuteStepActionResolver.resolve(WorkflowExecutionOperations workflowExecutionOperations, WorkflowExecution workflowExecution, ExecutePrimitive.ExecuteCommand command) Resolve the action for the given execute 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.Method parameters in io.axoniq.framework.workflow.runtime.execution with type arguments of type WorkflowExecutionModifier and TypeMethodDescriptionvoidSimpleWorkflowExecution.appendTask(Consumer<WorkflowExecution> task) SimpleWorkflowExecution.execute(Consumer<WorkflowExecution> terminationHandler) Executes the workflow body.InMemoryWorkflowExecutionRepository.findAll(Predicate<WorkflowExecution> predicate) WorkflowExecutionRepository.findAll(Predicate<WorkflowExecution> predicate) Returns all stored workflow executions matching the given predicate, with at most one execution per workflow identifier.voidInMemoryWorkflowExecutionRepository.removeAll(Predicate<WorkflowExecution> predicate) voidWorkflowExecutionRepository.removeAll(Predicate<WorkflowExecution> predicate) Removes all workflow executions matching the given predicate.InMemoryWorkflowExecutionRepository.save(String workflowId, Supplier<WorkflowExecution> factory) WorkflowExecutionRepository.save(String workflowId, Supplier<WorkflowExecution> factory) Atomically stores a new workflow execution if no execution exists for the given workflow identifier.Constructors in io.axoniq.framework.workflow.runtime.execution with parameters of type WorkflowExecutionModifierConstructorDescriptionAbstractStepExecutor(WorkflowExecutionOperations workflowExecutionOperations, WorkflowExecution workflowExecution, RunningSteps runningSteps, ReachedSteps reachedSteps, EventNameCustomizer parentEventNameCustomizer, Clock clock, WorkflowScheduler timeoutScheduler) Constructs the abstract step executor.AllMatchCombinatorDelegate(WorkflowExecution workflowExecution) Creates a new delegate backed by the given workflow state.AnyMatchCombinatorDelegate(WorkflowExecution workflowExecution) Creates a new delegate backed by the given workflow state.ExecuteDelegate(WorkflowExecutionOperations workflowExecutionOperations, WorkflowExecution workflowExecution, RunningSteps runningSteps, ReachedSteps reachedSteps, EventNameCustomizer parentEventNameCustomizer, Clock clock, UnitOfWorkFactory unitOfWorkFactory, Executor executor, WorkflowScheduler timeoutScheduler, ExecuteStepActionResolver actionResolver) Constructs the delegate.NoneMatchCombinatorDelegate(WorkflowExecution workflowExecution) Creates a new delegate backed by the given workflow state.PayloadDelegate(WorkflowExecutionOperations workflowExecutionOperations, WorkflowExecution workflowExecution, RunningSteps runningSteps, ReachedSteps reachedSteps, EventNameCustomizer parentEventNameCustomizer, Clock clock, WorkflowScheduler timeoutScheduler) Constructs the primitive implementation.PublishDelegate(WorkflowExecution workflowExecution, ReachedSteps reachedSteps) Constructs the delegate.RetryableExecuteDelegate(ExecuteDelegate delegate, WorkflowExecutionOperations workflowExecutionOperations, WorkflowExecution workflowExecution, RunningSteps runningSteps, ReachedSteps reachedSteps, EventNameCustomizer parentEventNameCustomizer, Clock clock, WorkflowScheduler timeoutScheduler) Constructs the delegate.StateBasedWorkflowStepResult(String stepName, StateBasedWorkflowStepResult.StateChangeTrigger stateChangeTrigger, Consumer<Throwable> cancellation, WorkflowExecution state) Creates a result backed by the current workflow execution state.VersionDelegate(WorkflowExecutionOperations workflowExecutionOperations, WorkflowExecution workflowExecution, ReachedSteps reachedSteps, EventNameCustomizer parentEventNameCustomizer, Clock clock) Constructs the delegate.WaitForDelegate(WorkflowExecutionOperations workflowExecutionOperations, WorkflowExecution workflowExecution, RunningSteps runningSteps, io.axoniq.framework.workflow.runtime.execution.EventWaitConditions eventWaitConditions, ReachedSteps reachedSteps, EventNameCustomizer parentEventNameCustomizer, Clock clock, WorkflowScheduler timeoutScheduler) Constructs the delegate.WorkflowExecutionOperationsDelegation(WorkflowConfiguration<?> workflowConfiguration, WorkflowContext workflowContext, WorkflowExecution workflowExecution, RunningSteps runningSteps, io.axoniq.framework.workflow.runtime.execution.EventWaitConditions eventWaitConditions, ReachedSteps reachedSteps, io.axoniq.framework.workflow.runtime.execution.WorkflowTerminalTransition terminalTransition, ProcessingContext processingContext) Creates the context delegation.WorkflowLifecycleControlDelegate(WorkflowExecutionOperations workflowExecutionOperations, WorkflowExecution workflowExecution, RunningSteps runningSteps, ReachedSteps reachedSteps, io.axoniq.framework.workflow.runtime.execution.WorkflowTerminalTransition terminalTransition) Constructs a lifecycle-control delegate. -
Uses of WorkflowExecution in io.axoniq.framework.workflow.runtime.test.fixture
Methods in io.axoniq.framework.workflow.runtime.test.fixture that return WorkflowExecutionModifier and TypeMethodDescriptionWorkflowEngineTestingState.execution()Returns the current workflow execution.DefaultWorkflowTestDriver.executionExists()WorkflowTestDriver.executionExists()Waits until an active workflow execution exists.DefaultWorkflowTestDriver.executionMatches(Predicate<WorkflowExecution> predicate) WorkflowTestDriver.executionMatches(Predicate<WorkflowExecution> predicate) Waits until an active workflow execution matching the predicate exists.Method parameters in io.axoniq.framework.workflow.runtime.test.fixture with type arguments of type WorkflowExecutionModifier and TypeMethodDescriptionDefaultWorkflowTestDriver.executionMatches(Predicate<WorkflowExecution> predicate) WorkflowTestDriver.executionMatches(Predicate<WorkflowExecution> predicate) Waits until an active workflow execution matching the predicate exists.voidDefaultWorkflowTestDriver.executionSatisfies(Consumer<WorkflowExecution> executionConsumer) voidWorkflowTestDriver.executionSatisfies(Consumer<WorkflowExecution> executionConsumer) Waits until an active workflow execution exists and applies the given consumer. -
Uses of WorkflowExecution in io.axoniq.framework.workflow.runtime.test.utils
Methods in io.axoniq.framework.workflow.runtime.test.utils with parameters of type WorkflowExecutionModifier and TypeMethodDescriptionManualExecuteStepActionResolver.resolve(WorkflowExecutionOperations workflowExecutionOperations, WorkflowExecution workflowExecution, ExecutePrimitive.ExecuteCommand command) Resolves the action for an execute step, blocking until the fixture supplies behavior for the step name.