Package com.axelor.workflow.exec
Record Class WalkBindings
java.lang.Object
java.lang.Record
com.axelor.workflow.exec.WalkBindings
public record WalkBindings(Map<String,Object> agent, Map<String,Object> task, Map<String,Object> error)
extends Record
What a walk reads as
agent, task and error: the last of each on its path.
Kept on the parked row, so a resumed walk reads what the walk before the park read; each is plain
JSON.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagent()Returns the value of theagentrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.static WalkBindingsfinal inthashCode()Returns a hash code value for this object.task()Returns the value of thetaskrecord component.toJson()As stored on a row; null when nothing is bound.final StringtoString()Returns a string representation of this record class.The same, with the task that closed bound astask; null keeps the stored one.
-
Field Details
-
NONE
-
-
Constructor Details
-
WalkBindings
Creates an instance of aWalkBindingsrecord class.- Parameters:
agent- the value for theagentrecord componenttask- the value for thetaskrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
withTask
The same, with the task that closed bound astask; null keeps the stored one. -
toJson
As stored on a row; null when nothing is bound. -
fromJson
-
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). -
agent
Returns the value of theagentrecord component.- Returns:
- the value of the
agentrecord component
-
task
Returns the value of thetaskrecord component.- Returns:
- the value of the
taskrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-