Record Class CompletedTaskInfo
java.lang.Object
java.lang.Record
io.serverlessworkflow.impl.persistence.CompletedTaskInfo
- All Implemented Interfaces:
PersistenceTaskInfo
public record CompletedTaskInfo(Instant instant, io.serverlessworkflow.impl.WorkflowModel model, io.serverlessworkflow.impl.WorkflowModel context, Boolean isEndNode, String nextPosition, int iteration)
extends Record
implements PersistenceTaskInfo
-
Constructor Summary
ConstructorsConstructorDescriptionCompletedTaskInfo(Instant instant, io.serverlessworkflow.impl.WorkflowModel model, io.serverlessworkflow.impl.WorkflowModel context, Boolean isEndNode, String nextPosition) CompletedTaskInfo(Instant instant, io.serverlessworkflow.impl.WorkflowModel model, io.serverlessworkflow.impl.WorkflowModel context, Boolean isEndNode, String nextPosition, int iteration) Creates an instance of aCompletedTaskInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.serverlessworkflow.impl.WorkflowModelcontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.instant()Returns the value of theinstantrecord component.Returns the value of theisEndNoderecord component.intReturns the value of theiterationrecord component.io.serverlessworkflow.impl.WorkflowModelmodel()Returns the value of themodelrecord component.Returns the value of thenextPositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompletedTaskInfo
-
CompletedTaskInfo
public CompletedTaskInfo(Instant instant, io.serverlessworkflow.impl.WorkflowModel model, io.serverlessworkflow.impl.WorkflowModel context, Boolean isEndNode, String nextPosition, int iteration) Creates an instance of aCompletedTaskInforecord class.- Parameters:
instant- the value for theinstantrecord componentmodel- the value for themodelrecord componentcontext- the value for thecontextrecord componentisEndNode- the value for theisEndNoderecord componentnextPosition- the value for thenextPositionrecord componentiteration- the value for theiterationrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
instant
Returns the value of theinstantrecord component.- Returns:
- the value of the
instantrecord component
-
model
public io.serverlessworkflow.impl.WorkflowModel model()Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
context
public io.serverlessworkflow.impl.WorkflowModel context()Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
isEndNode
Returns the value of theisEndNoderecord component.- Returns:
- the value of the
isEndNoderecord component
-
nextPosition
Returns the value of thenextPositionrecord component.- Returns:
- the value of the
nextPositionrecord component
-
iteration
public int iteration()Returns the value of theiterationrecord component.- Returns:
- the value of the
iterationrecord component
-