Record Class PrimitiveCommands.WorkflowStepResultExecuteCommand

java.lang.Object
java.lang.Record
io.axoniq.framework.workflow.runtime.api.execution.context.PrimitiveCommands.WorkflowStepResultExecuteCommand
All Implemented Interfaces:
ExecutePrimitive.ExecuteCommand
Enclosing class:
PrimitiveCommands

@Internal public static record PrimitiveCommands.WorkflowStepResultExecuteCommand(String stepName, Map<String,@Nullable Object> local, PayloadProcessor action, PayloadReducer parameterMapping, PayloadReducer resultMapping, Duration timeout, EventNameCustomizer eventNameCustomizer, RetryPolicy retryPolicy) extends Record implements ExecutePrimitive.ExecuteCommand
Default execute command implementation.
  • Constructor Details

    • WorkflowStepResultExecuteCommand

      public WorkflowStepResultExecuteCommand(String stepName, Map<String,@Nullable Object> local, PayloadProcessor action, PayloadReducer parameterMapping, PayloadReducer resultMapping, Duration timeout, EventNameCustomizer eventNameCustomizer, RetryPolicy retryPolicy)
      Creates an instance of a WorkflowStepResultExecuteCommand record class.
      Parameters:
      stepName - the value for the stepName record component
      local - the value for the local record component
      action - the value for the action record component
      parameterMapping - the value for the parameterMapping record component
      resultMapping - the value for the resultMapping record component
      timeout - the value for the timeout record component
      eventNameCustomizer - the value for the eventNameCustomizer record component
      retryPolicy - the value for the retryPolicy record component
  • Method Details

    • stepName

      public String stepName()
      Returns the value of the stepName record component.
      Specified by:
      stepName in interface ExecutePrimitive.ExecuteCommand
      Returns:
      the value of the stepName record component
    • local

      public Map<String,@Nullable Object> local()
      Returns the value of the local record component.
      Specified by:
      local in interface ExecutePrimitive.ExecuteCommand
      Returns:
      the value of the local record component
    • action

      public PayloadProcessor action()
      Returns the value of the action record component.
      Specified by:
      action in interface ExecutePrimitive.ExecuteCommand
      Returns:
      the value of the action record component
    • parameterPayloadReducer

      public PayloadReducer parameterPayloadReducer()
      Description copied from interface: ExecutePrimitive.ExecuteCommand
      Returns reducer to be used for the step parameters.
      Specified by:
      parameterPayloadReducer in interface ExecutePrimitive.ExecuteCommand
      Returns:
      step parameter reducer for payload.
    • resultPayloadReducer

      public PayloadReducer resultPayloadReducer()
      Description copied from interface: ExecutePrimitive.ExecuteCommand
      Returns reducer to be used for the step result.
      Specified by:
      resultPayloadReducer in interface ExecutePrimitive.ExecuteCommand
      Returns:
      step result reducer for payload.
    • timeout

      public Duration timeout()
      Returns the value of the timeout record component.
      Specified by:
      timeout in interface ExecutePrimitive.ExecuteCommand
      Returns:
      the value of the timeout record component
    • eventNameCustomizer

      public EventNameCustomizer eventNameCustomizer()
      Returns the value of the eventNameCustomizer record component.
      Specified by:
      eventNameCustomizer in interface ExecutePrimitive.ExecuteCommand
      Returns:
      the value of the eventNameCustomizer record component
    • retryPolicy

      public RetryPolicy retryPolicy()
      Returns the value of the retryPolicy record component.
      Specified by:
      retryPolicy in interface ExecutePrimitive.ExecuteCommand
      Returns:
      the value of the retryPolicy record component
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • parameterMapping

      public PayloadReducer parameterMapping()
      Returns the value of the parameterMapping record component.
      Returns:
      the value of the parameterMapping record component
    • resultMapping

      public PayloadReducer resultMapping()
      Returns the value of the resultMapping record component.
      Returns:
      the value of the resultMapping record component