Record Class ProcessRunServiceLocal.ProcessRun

java.lang.Object
java.lang.Record
com.priint.pubserverapi.workflow.ProcessRunServiceLocal.ProcessRun
Enclosing interface:
ProcessRunServiceLocal

public static record ProcessRunServiceLocal.ProcessRun(String processInstanceId, String processDefinitionKey, Instant startTime, Instant endTime, Long durationInMillis, ProcessRunServiceLocal.State state, String endActivityId, ProcessRunServiceLocal.UntrustedText failureMessage, ProcessRunServiceLocal.ObjectReference object) extends Record
  • Constructor Details

    • ProcessRun

      public ProcessRun(String processInstanceId, String processDefinitionKey, Instant startTime, Instant endTime, Long durationInMillis, ProcessRunServiceLocal.State state, String endActivityId, ProcessRunServiceLocal.UntrustedText failureMessage, ProcessRunServiceLocal.ObjectReference object)
      Creates an instance of a ProcessRun record class.
      Parameters:
      processInstanceId - the value for the processInstanceId record component
      processDefinitionKey - the value for the processDefinitionKey record component
      startTime - the value for the startTime record component
      endTime - the value for the endTime record component
      durationInMillis - the value for the durationInMillis record component
      state - the value for the state record component
      endActivityId - the value for the endActivityId record component
      failureMessage - the value for the failureMessage record component
      object - the value for the object 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. 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.
    • processInstanceId

      public String processInstanceId()
      Returns the value of the processInstanceId record component.
      Returns:
      the value of the processInstanceId record component
    • processDefinitionKey

      public String processDefinitionKey()
      Returns the value of the processDefinitionKey record component.
      Returns:
      the value of the processDefinitionKey record component
    • startTime

      public Instant startTime()
      Returns the value of the startTime record component.
      Returns:
      the value of the startTime record component
    • endTime

      public Instant endTime()
      Returns the value of the endTime record component.
      Returns:
      the value of the endTime record component
    • durationInMillis

      public Long durationInMillis()
      Returns the value of the durationInMillis record component.
      Returns:
      the value of the durationInMillis record component
    • state

      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • endActivityId

      public String endActivityId()
      Returns the value of the endActivityId record component.
      Returns:
      the value of the endActivityId record component
    • failureMessage

      public ProcessRunServiceLocal.UntrustedText failureMessage()
      Returns the value of the failureMessage record component.
      Returns:
      the value of the failureMessage record component
    • object

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