Class ManualExecuteStepActionResolver
java.lang.Object
io.axoniq.framework.workflow.runtime.test.utils.ManualExecuteStepActionResolver
- All Implemented Interfaces:
ExecuteStepActionResolver
Resolver that lets tests provide execute-step actions.
- Since:
- 5.4.0
- Author:
- Simon Zambrovski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAction(String stepName, PayloadProcessor action) Applies the supplied action for the step instead of the workflow-defined action.voidapplyOriginalAction(String stepName) Applies the workflow-defined action for the step.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.
-
Constructor Details
-
ManualExecuteStepActionResolver
public ManualExecuteStepActionResolver()
-
-
Method Details
-
resolve
public PayloadProcessor 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.- Specified by:
resolvein interfaceExecuteStepActionResolver- Parameters:
workflowExecutionOperations- workflow contextworkflowExecution- workflow executioncommand- execute command- Returns:
- payload processor to execute
-
applyAction
Applies the supplied action for the step instead of the workflow-defined action.- Parameters:
stepName- step nameaction- action to apply
-
applyOriginalAction
Applies the workflow-defined action for the step.- Parameters:
stepName- step name
-