Class WorkflowStepResults
java.lang.Object
io.axoniq.framework.workflow.runtime.execution.WorkflowStepResults
Utility containing
WorkflowStepResult factory methods.- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Method Summary
Modifier 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 WorkflowStepResultcompleted(String stepName, @Nullable Object payload, EventConverter converter) Constructs completed result.static WorkflowStepResultConstructs failed result.static WorkflowStepResultConstructs timed out result.
-
Method Details
-
completed
public static WorkflowStepResult completed(String stepName, @Nullable Object payload, EventConverter converter) Constructs completed result.- Parameters:
payload- payload of the result, might be null.- Returns:
- completed step result.
-
completed
Constructs 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).- Returns:
- completed step result.
-
failed
Constructs failed result.- Parameters:
error- failure causing error.- Returns:
- failed result.
-
canceled
Constructs cancelled result.- Returns:
- cancelled result.
-
timeout
Constructs timed out result.- Parameters:
timeout- timeout duration.- Returns:
- timed out result.
-