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 objectobjectType- type of the object (e.g., DOCUMENT, PLANNING); may be null if not applicableobjectName- display name of the object; may be calculated or emptyprocessType- 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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.objectId()Returns the value of theobjectIdrecord component.Returns the value of theobjectNamerecord component.Returns the value of theobjectTyperecord component.Returns the value of theprocessInstanceIdrecord component.Returns the value of theprocessTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProcessReference
public ProcessReference(String objectId, String objectType, String objectName, String processType, String processInstanceId) Creates an instance of aProcessReferencerecord class.- Parameters:
objectId- the value for theobjectIdrecord componentobjectType- the value for theobjectTyperecord componentobjectName- the value for theobjectNamerecord componentprocessType- the value for theprocessTyperecord componentprocessInstanceId- the value for theprocessInstanceIdrecord 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). -
objectId
Returns the value of theobjectIdrecord component.- Returns:
- the value of the
objectIdrecord component
-
objectType
Returns the value of theobjectTyperecord component.- Returns:
- the value of the
objectTyperecord component
-
objectName
Returns the value of theobjectNamerecord component.- Returns:
- the value of the
objectNamerecord component
-
processType
Returns the value of theprocessTyperecord component.- Returns:
- the value of the
processTyperecord component
-
processInstanceId
Returns the value of theprocessInstanceIdrecord component.- Returns:
- the value of the
processInstanceIdrecord component
-