Interface WorkflowInstances.Single
- All Superinterfaces:
WorkflowInstanceOperator,WorkflowInstances
- Enclosing interface:
WorkflowInstances
Represents a query result containing at most one
workflow instance. Obtain this result
from WorkflowManager.findOne(WorkflowStateQuery).-
Nested Class Summary
Nested classes/interfaces inherited from interface io.axoniq.framework.workflow.runtime.api.manager.WorkflowInstances
WorkflowInstances.Single -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<@Nullable WorkflowState> Resolves the detached state of the single workflow instance in this collection.Methods inherited from interface io.axoniq.framework.workflow.runtime.api.manager.WorkflowInstanceOperator
requestCancellationOfAllSteps, requestStepCancellation, requestWorkflowCancellationMethods inherited from interface io.axoniq.framework.workflow.runtime.api.manager.WorkflowInstances
instances, size
-
Method Details
-
singleState
CompletableFuture<@Nullable WorkflowState> singleState()Resolves the detached state of the single workflow instance in this collection.- Returns:
- a future completing with the detached state, or
nullwhen no instance matches. If more than one instance matches,CompletableFuture.join()throws aCompletionExceptionwhose cause is aNonUniqueWorkflowInstanceMatchException.
-