Record Class WorkflowPlan.TaskStep

java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan.TaskStep
All Implemented Interfaces:
WorkflowPlan.Step
Enclosing class:
WorkflowPlan

public static record WorkflowPlan.TaskStep(String id, String title, String description, String assignee, String user, String role, String group, CommentMode commentMode, String when, boolean autoComplete, boolean allowReject, boolean allowForceComplete, boolean allowCancel, String blocked, Integer maxVisits, String next, List<WorkflowPlan.Boundary> boundaries) extends Record implements WorkflowPlan.Step
A human task. The walk parks here and resumes from next when it completes. when gates approval; with autoComplete it also completes the task by itself. The allow* flags say whether reject, force-complete and cancel exist at all; when never gates them.
  • Constructor Details

    • TaskStep

      public TaskStep(String id, String title, String description, String assignee, String user, String role, String group, CommentMode commentMode, String when, boolean autoComplete, boolean allowReject, boolean allowForceComplete, boolean allowCancel, String blocked, Integer maxVisits, String next, List<WorkflowPlan.Boundary> boundaries)
      Creates an instance of a TaskStep record class.
      Parameters:
      id - the value for the id record component
      title - the value for the title record component
      description - the value for the description record component
      assignee - the value for the assignee record component
      user - the value for the user record component
      role - the value for the role record component
      group - the value for the group record component
      commentMode - the value for the commentMode record component
      when - the value for the when record component
      autoComplete - the value for the autoComplete record component
      allowReject - the value for the allowReject record component
      allowForceComplete - the value for the allowForceComplete record component
      allowCancel - the value for the allowCancel record component
      blocked - the value for the blocked record component
      maxVisits - the value for the maxVisits record component
      next - the value for the next record component
      boundaries - the value for the boundaries record component
  • Method Details

    • type

      public String type()
      Specified by:
      type in interface WorkflowPlan.Step
    • targets

      public List<String> targets()
      The ordinary edge and every boundary's, so the compiler sees boundary targets as reachable.
      Specified by:
      targets in interface WorkflowPlan.Step
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • id

      public String id()
      Returns the value of the id record component.
      Specified by:
      id in interface WorkflowPlan.Step
      Returns:
      the value of the id record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • assignee

      public String assignee()
      Returns the value of the assignee record component.
      Returns:
      the value of the assignee record component
    • user

      public String user()
      Returns the value of the user record component.
      Returns:
      the value of the user record component
    • role

      public String role()
      Returns the value of the role record component.
      Returns:
      the value of the role record component
    • group

      public String group()
      Returns the value of the group record component.
      Returns:
      the value of the group record component
    • commentMode

      public CommentMode commentMode()
      Returns the value of the commentMode record component.
      Returns:
      the value of the commentMode record component
    • when

      public String when()
      Returns the value of the when record component.
      Returns:
      the value of the when record component
    • autoComplete

      public boolean autoComplete()
      Returns the value of the autoComplete record component.
      Returns:
      the value of the autoComplete record component
    • allowReject

      public boolean allowReject()
      Returns the value of the allowReject record component.
      Returns:
      the value of the allowReject record component
    • allowForceComplete

      public boolean allowForceComplete()
      Returns the value of the allowForceComplete record component.
      Returns:
      the value of the allowForceComplete record component
    • allowCancel

      public boolean allowCancel()
      Returns the value of the allowCancel record component.
      Returns:
      the value of the allowCancel record component
    • blocked

      public String blocked()
      Returns the value of the blocked record component.
      Returns:
      the value of the blocked record component
    • maxVisits

      public Integer maxVisits()
      Returns the value of the maxVisits record component.
      Returns:
      the value of the maxVisits record component
    • next

      public String next()
      Returns the value of the next record component.
      Returns:
      the value of the next record component
    • boundaries

      public List<WorkflowPlan.Boundary> boundaries()
      Returns the value of the boundaries record component.
      Specified by:
      boundaries in interface WorkflowPlan.Step
      Returns:
      the value of the boundaries record component