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 execution
payload - the workflow payload
definitionName - the name of the workflow definition
definitionVersion - the version of the workflow definition
status - the status of the workflow
terminationCause - the cause the workflow terminated with, if any
versions - the version per version change identifier
steps - 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 Details

  • Method Details

    • 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.
    • workflowId

      public String workflowId()
      Returns the value of the workflowId record component.
      Returns:
      the value of the workflowId record component
    • payload

      public Map<String,@Nullable Object> payload()
      Returns the value of the payload record component.
      Returns:
      the value of the payload record component
    • definitionName

      public String definitionName()
      Returns the value of the definitionName record component.
      Returns:
      the value of the definitionName record component
    • definitionVersion

      public String definitionVersion()
      Returns the value of the definitionVersion record component.
      Returns:
      the value of the definitionVersion record component
    • status

      public WorkflowStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • terminationCause

      public @Nullable WorkflowError terminationCause()
      Returns the value of the terminationCause record component.
      Returns:
      the value of the terminationCause record component
    • versions

      public Map<String,String> versions()
      Returns the value of the versions record component.
      Returns:
      the value of the versions record component
    • steps

      Returns the value of the steps record component.
      Returns:
      the value of the steps record component