Record Class EventSourcedWorkflowState.StateSnapshot
java.lang.Object
java.lang.Record
io.axoniq.framework.workflow.runtime.execution.EventSourcedWorkflowState.StateSnapshot
- Record Components:
workflowId- the identifier of the workflow executionpayload- the workflow payloaddefinitionName- the name of the workflow definitiondefinitionVersion- the version of the workflow definitionstatus- the status of the workflowterminationCause- the cause the workflow terminated with, if anyversions- the version per version change identifiersteps- the plain values of the workflow steps
- Enclosing class:
EventSourcedWorkflowState
public static record EventSourcedWorkflowState.StateSnapshot(String workflowId, Map<String,@Nullable Object> payload, String definitionName, String definitionVersion, WorkflowStatus status, @Nullable WorkflowError terminationCause, Map<String,String> versions, List<EventSourcedWorkflowState.StepSnapshot> steps)
extends Record
The plain values of an
EventSourcedWorkflowState, which a converter can write and read.-
Constructor Summary
ConstructorsConstructorDescriptionStateSnapshot(String workflowId, Map<String, @Nullable Object> payload, String definitionName, String definitionVersion, WorkflowStatus status, @Nullable WorkflowError terminationCause, Map<String, String> versions, List<EventSourcedWorkflowState.StepSnapshot> steps) Creates an instance of aStateSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefinitionNamerecord component.Returns the value of thedefinitionVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.payload()Returns the value of thepayloadrecord component.status()Returns the value of thestatusrecord component.steps()Returns the value of thestepsrecord component.@Nullable WorkflowErrorReturns the value of theterminationCauserecord component.final StringtoString()Returns a string representation of this record class.versions()Returns the value of theversionsrecord component.Returns the value of theworkflowIdrecord component.
-
Constructor Details
-
StateSnapshot
public StateSnapshot(String workflowId, Map<String, @Nullable Object> payload, String definitionName, String definitionVersion, WorkflowStatus status, @Nullable WorkflowError terminationCause, Map<String, String> versions, List<EventSourcedWorkflowState.StepSnapshot> steps) Creates an instance of aStateSnapshotrecord class.- Parameters:
workflowId- the value for theworkflowIdrecord componentpayload- the value for thepayloadrecord componentdefinitionName- the value for thedefinitionNamerecord componentdefinitionVersion- the value for thedefinitionVersionrecord componentstatus- the value for thestatusrecord componentterminationCause- the value for theterminationCauserecord componentversions- the value for theversionsrecord componentsteps- the value for thestepsrecord 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). -
workflowId
Returns the value of theworkflowIdrecord component.- Returns:
- the value of the
workflowIdrecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
definitionName
Returns the value of thedefinitionNamerecord component.- Returns:
- the value of the
definitionNamerecord component
-
definitionVersion
Returns the value of thedefinitionVersionrecord component.- Returns:
- the value of the
definitionVersionrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
terminationCause
Returns the value of theterminationCauserecord component.- Returns:
- the value of the
terminationCauserecord component
-
versions
Returns the value of theversionsrecord component.- Returns:
- the value of the
versionsrecord component
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-