Record Class ProcessTransitionSnapshot

java.lang.Object
java.lang.Record
su.onno.process.ProcessTransitionSnapshot

public record ProcessTransitionSnapshot(UUID id, UUID instanceId, UUID tokenId, int definitionVersion, ProcessTransitionType type, String fromStep, String toStep, String outcome, ProcessActorId actorId, String actor, Instant occurredAt, int sequence) extends Record
One durable, append-only transition in a process instance's audit history.
  • Constructor Details

    • ProcessTransitionSnapshot

      public ProcessTransitionSnapshot(UUID id, UUID instanceId, String fromStep, String toStep, String outcome, ProcessActorId actorId, String actor, Instant occurredAt, int sequence)
      Source-compatible constructor for the original human-task-only transition shape.
    • ProcessTransitionSnapshot

      public ProcessTransitionSnapshot(UUID id, UUID instanceId, UUID tokenId, int definitionVersion, ProcessTransitionType type, String fromStep, String toStep, String outcome, ProcessActorId actorId, String actor, Instant occurredAt, int sequence)
      Creates an instance of a ProcessTransitionSnapshot record class.
      Parameters:
      id - the value for the id record component
      instanceId - the value for the instanceId record component
      tokenId - the value for the tokenId record component
      definitionVersion - the value for the definitionVersion record component
      type - the value for the type record component
      fromStep - the value for the fromStep record component
      toStep - the value for the toStep record component
      outcome - the value for the outcome record component
      actorId - the value for the actorId record component
      actor - the value for the actor record component
      occurredAt - the value for the occurredAt record component
      sequence - the value for the sequence record component
  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • id

      public UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • instanceId

      public UUID instanceId()
      Returns the value of the instanceId record component.
      Returns:
      the value of the instanceId record component
    • tokenId

      public UUID tokenId()
      Returns the value of the tokenId record component.
      Returns:
      the value of the tokenId record component
    • definitionVersion

      public int definitionVersion()
      Returns the value of the definitionVersion record component.
      Returns:
      the value of the definitionVersion record component
    • type

      public ProcessTransitionType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • fromStep

      public String fromStep()
      Returns the value of the fromStep record component.
      Returns:
      the value of the fromStep record component
    • toStep

      public String toStep()
      Returns the value of the toStep record component.
      Returns:
      the value of the toStep record component
    • outcome

      public String outcome()
      Returns the value of the outcome record component.
      Returns:
      the value of the outcome record component
    • actorId

      public ProcessActorId actorId()
      Returns the value of the actorId record component.
      Returns:
      the value of the actorId record component
    • actor

      public String actor()
      Returns the value of the actor record component.
      Returns:
      the value of the actor record component
    • occurredAt

      public Instant occurredAt()
      Returns the value of the occurredAt record component.
      Returns:
      the value of the occurredAt record component
    • sequence

      public int sequence()
      Returns the value of the sequence record component.
      Returns:
      the value of the sequence record component