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 Summary
ConstructorsConstructorDescriptionWorkflowStepResultExecuteCommand(String stepName, Map<String, @Nullable Object> local, PayloadProcessor action, PayloadReducer parameterMapping, PayloadReducer resultMapping, Duration timeout, EventNameCustomizer eventNameCustomizer, RetryPolicy retryPolicy) Creates an instance of aWorkflowStepResultExecuteCommandrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventNameCustomizerrecord component.final inthashCode()Returns a hash code value for this object.local()Returns the value of thelocalrecord component.Returns the value of theparameterMappingrecord component.Returns reducer to be used for the step parameters.Returns the value of theresultMappingrecord component.Returns reducer to be used for the step result.Returns the value of theretryPolicyrecord component.stepName()Returns the value of thestepNamerecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aWorkflowStepResultExecuteCommandrecord class.- Parameters:
stepName- the value for thestepNamerecord componentlocal- the value for thelocalrecord componentaction- the value for theactionrecord componentparameterMapping- the value for theparameterMappingrecord componentresultMapping- the value for theresultMappingrecord componenttimeout- the value for thetimeoutrecord componenteventNameCustomizer- the value for theeventNameCustomizerrecord componentretryPolicy- the value for theretryPolicyrecord component
-
-
Method Details
-
stepName
Returns the value of thestepNamerecord component.- Specified by:
stepNamein interfaceExecutePrimitive.ExecuteCommand- Returns:
- the value of the
stepNamerecord component
-
local
Returns the value of thelocalrecord component.- Specified by:
localin interfaceExecutePrimitive.ExecuteCommand- Returns:
- the value of the
localrecord component
-
action
Returns the value of theactionrecord component.- Specified by:
actionin interfaceExecutePrimitive.ExecuteCommand- Returns:
- the value of the
actionrecord component
-
parameterPayloadReducer
Description copied from interface:ExecutePrimitive.ExecuteCommandReturns reducer to be used for the step parameters.- Specified by:
parameterPayloadReducerin interfaceExecutePrimitive.ExecuteCommand- Returns:
- step parameter reducer for payload.
-
resultPayloadReducer
Description copied from interface:ExecutePrimitive.ExecuteCommandReturns reducer to be used for the step result.- Specified by:
resultPayloadReducerin interfaceExecutePrimitive.ExecuteCommand- Returns:
- step result reducer for payload.
-
timeout
Returns the value of thetimeoutrecord component.- Specified by:
timeoutin interfaceExecutePrimitive.ExecuteCommand- Returns:
- the value of the
timeoutrecord component
-
eventNameCustomizer
Returns the value of theeventNameCustomizerrecord component.- Specified by:
eventNameCustomizerin interfaceExecutePrimitive.ExecuteCommand- Returns:
- the value of the
eventNameCustomizerrecord component
-
retryPolicy
Returns the value of theretryPolicyrecord component.- Specified by:
retryPolicyin interfaceExecutePrimitive.ExecuteCommand- Returns:
- the value of the
retryPolicyrecord component
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
parameterMapping
Returns the value of theparameterMappingrecord component.- Returns:
- the value of the
parameterMappingrecord component
-
resultMapping
Returns the value of theresultMappingrecord component.- Returns:
- the value of the
resultMappingrecord component
-