Record Class ProcessReference

java.lang.Object
java.lang.Record
com.priint.pubserverapi.servermessages.ProcessReference
Record Components:
objectId - ID of the object the process operates on (e.g., document ID); may be null if the process is not tied to a specific object
objectType - type of the object (e.g., DOCUMENT, PLANNING); may be null if not applicable
objectName - display name of the object; may be calculated or empty
processType - type of the process (e.g., Camunda process type)
processInstanceId - unique ID of the process instance (e.g., Camunda process instance ID)

public record ProcessReference(String objectId, String objectType, String objectName, String processType, String processInstanceId) extends Record
Represents a reference to a business process and the object it operates on.

Each instance contains information about the process type, instance ID, associated object, and message reference.

  • Constructor Details

    • ProcessReference

      public ProcessReference(String objectId, String objectType, String objectName, String processType, String processInstanceId)
      Creates an instance of a ProcessReference record class.
      Parameters:
      objectId - the value for the objectId record component
      objectType - the value for the objectType record component
      objectName - the value for the objectName record component
      processType - the value for the processType record component
      processInstanceId - the value for the processInstanceId 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.
    • objectId

      public String objectId()
      Returns the value of the objectId record component.
      Returns:
      the value of the objectId record component
    • objectType

      public String objectType()
      Returns the value of the objectType record component.
      Returns:
      the value of the objectType record component
    • objectName

      public String objectName()
      Returns the value of the objectName record component.
      Returns:
      the value of the objectName record component
    • processType

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

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