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 Details

  • Constructor Details

    • WalkBindings

      public WalkBindings(Map<String,Object> agent, Map<String,Object> task, Map<String,Object> error)
      Creates an instance of a WalkBindings record class.
      Parameters:
      agent - the value for the agent record component
      task - the value for the task record component
      error - the value for the error record component
  • Method Details

    • withTask

      public WalkBindings withTask(Map<String,Object> closed)
      The same, with the task that closed bound as task; null keeps the stored one.
    • toJson

      public String toJson()
      As stored on a row; null when nothing is bound.
    • fromJson

      public static WalkBindings fromJson(String json)
    • 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.
    • agent

      public Map<String,Object> agent()
      Returns the value of the agent record component.
      Returns:
      the value of the agent record component
    • task

      public Map<String,Object> task()
      Returns the value of the task record component.
      Returns:
      the value of the task record component
    • error

      public Map<String,Object> error()
      Returns the value of the error record component.
      Returns:
      the value of the error record component