Class ManualExecuteStepActionResolver

java.lang.Object
io.axoniq.framework.workflow.runtime.test.utils.ManualExecuteStepActionResolver
All Implemented Interfaces:
ExecuteStepActionResolver

public class ManualExecuteStepActionResolver extends Object implements ExecuteStepActionResolver
Resolver that lets tests provide execute-step actions.
Since:
5.4.0
Author:
Simon Zambrovski
  • 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:
      resolve in interface ExecuteStepActionResolver
      Parameters:
      workflowExecutionOperations - workflow context
      workflowExecution - workflow execution
      command - execute command
      Returns:
      payload processor to execute
    • applyAction

      public void applyAction(String stepName, PayloadProcessor action)
      Applies the supplied action for the step instead of the workflow-defined action.
      Parameters:
      stepName - step name
      action - action to apply
    • applyOriginalAction

      public void applyOriginalAction(String stepName)
      Applies the workflow-defined action for the step.
      Parameters:
      stepName - step name