Record Class PrimitiveCommands.WorkflowStepResultModifyPayloadCommand
java.lang.Object
java.lang.Record
io.axoniq.framework.workflow.runtime.api.execution.context.PrimitiveCommands.WorkflowStepResultModifyPayloadCommand
- Record Components:
stepName- step namepayloadModification- payload modificationeventNameCustomizer- event name customizer
- All Implemented Interfaces:
PayloadPrimitive.ModifyPayloadCommand
- Enclosing class:
PrimitiveCommands
@Internal
public static record PrimitiveCommands.WorkflowStepResultModifyPayloadCommand(String stepName, PayloadModification payloadModification, EventNameCustomizer eventNameCustomizer)
extends Record
implements PayloadPrimitive.ModifyPayloadCommand
Default payload modification command implementation allowing asynchronous execution and returning the
.
invalid reference
WorkflowStepResult
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowStepResultModifyPayloadCommand(String stepName, PayloadModification payloadModification, EventNameCustomizer eventNameCustomizer) Creates an instance of aWorkflowStepResultModifyPayloadCommandrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.Returns the value of thepayloadModificationrecord component.stepName()Returns the value of thestepNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorkflowStepResultModifyPayloadCommand
public WorkflowStepResultModifyPayloadCommand(String stepName, PayloadModification payloadModification, EventNameCustomizer eventNameCustomizer) Creates an instance of aWorkflowStepResultModifyPayloadCommandrecord class.- Parameters:
stepName- the value for thestepNamerecord componentpayloadModification- the value for thepayloadModificationrecord componenteventNameCustomizer- the value for theeventNameCustomizerrecord component
-
-
Method Details
-
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). -
stepName
Returns the value of thestepNamerecord component.- Specified by:
stepNamein interfacePayloadPrimitive.ModifyPayloadCommand- Returns:
- the value of the
stepNamerecord component
-
payloadModification
Returns the value of thepayloadModificationrecord component.- Specified by:
payloadModificationin interfacePayloadPrimitive.ModifyPayloadCommand- Returns:
- the value of the
payloadModificationrecord component
-
eventNameCustomizer
Returns the value of theeventNameCustomizerrecord component.- Specified by:
eventNameCustomizerin interfacePayloadPrimitive.ModifyPayloadCommand- Returns:
- the value of the
eventNameCustomizerrecord component
-