Package com.priint.pubserverapi.workflow
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 Summary
ConstructorsConstructorDescriptionProcessRun(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 aProcessRunrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedurationInMillisrecord component.Returns the value of theendActivityIdrecord component.endTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailureMessagerecord component.final inthashCode()Returns a hash code value for this object.object()Returns the value of theobjectrecord component.Returns the value of theprocessDefinitionKeyrecord component.Returns the value of theprocessInstanceIdrecord component.Returns the value of thestartTimerecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
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 aProcessRunrecord class.- Parameters:
processInstanceId- the value for theprocessInstanceIdrecord componentprocessDefinitionKey- the value for theprocessDefinitionKeyrecord componentstartTime- the value for thestartTimerecord componentendTime- the value for theendTimerecord componentdurationInMillis- the value for thedurationInMillisrecord componentstate- the value for thestaterecord componentendActivityId- the value for theendActivityIdrecord componentfailureMessage- the value for thefailureMessagerecord componentobject- the value for theobjectrecord 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). -
processInstanceId
Returns the value of theprocessInstanceIdrecord component.- Returns:
- the value of the
processInstanceIdrecord component
-
processDefinitionKey
Returns the value of theprocessDefinitionKeyrecord component.- Returns:
- the value of the
processDefinitionKeyrecord component
-
startTime
Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
endTime
Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-
durationInMillis
Returns the value of thedurationInMillisrecord component.- Returns:
- the value of the
durationInMillisrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
endActivityId
Returns the value of theendActivityIdrecord component.- Returns:
- the value of the
endActivityIdrecord component
-
failureMessage
Returns the value of thefailureMessagerecord component.- Returns:
- the value of the
failureMessagerecord component
-
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-