Record Class WorkflowRunView

java.lang.Object
java.lang.Record
com.axelor.workflow.view.WorkflowRunView
Record Components:
admin - whether the admin-tier fields were filled in

public record WorkflowRunView(Long runId, String workflowName, String status, String lastNode, String error, String triggerType, String startedBy, String calledBy, String calledAtNode, String calledVia, Integer revision, LocalDateTime startedAt, LocalDateTime endedAt, WorkflowGraphView graph, List<WorkflowRunView.Visit> visits, List<WorkflowRunView.Live> live, List<WorkflowRunView.EscapeBranch> escapeBranches, List<WorkflowRunView.Activation> activations, WorkflowRunView.Path path, boolean fullTrace, boolean admin) extends Record
One run, as the viewer draws it: the definition's shape, where the run has been, and where it is now.

Readers of the record get the shape and positions; administrators also get cost and errors. The server decides the tier and omits the extras otherwise.

  • Constructor Details

    • WorkflowRunView

      public WorkflowRunView(Long runId, String workflowName, String status, String lastNode, String error, String triggerType, String startedBy, String calledBy, String calledAtNode, String calledVia, Integer revision, LocalDateTime startedAt, LocalDateTime endedAt, WorkflowGraphView graph, List<WorkflowRunView.Visit> visits, List<WorkflowRunView.Live> live, List<WorkflowRunView.EscapeBranch> escapeBranches, List<WorkflowRunView.Activation> activations, WorkflowRunView.Path path, boolean fullTrace, boolean admin)
      Creates an instance of a WorkflowRunView record class.
      Parameters:
      runId - the value for the runId record component
      workflowName - the value for the workflowName record component
      status - the value for the status record component
      lastNode - the value for the lastNode record component
      error - the value for the error record component
      triggerType - the value for the triggerType record component
      startedBy - the value for the startedBy record component
      calledBy - the value for the calledBy record component
      calledAtNode - the value for the calledAtNode record component
      calledVia - the value for the calledVia record component
      revision - the value for the revision record component
      startedAt - the value for the startedAt record component
      endedAt - the value for the endedAt record component
      graph - the value for the graph record component
      visits - the value for the visits record component
      live - the value for the live record component
      escapeBranches - the value for the escapeBranches record component
      activations - the value for the activations record component
      path - the value for the path record component
      fullTrace - the value for the fullTrace record component
      admin - the value for the admin record component
  • Method Details

    • 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.
    • runId

      public Long runId()
      Returns the value of the runId record component.
      Returns:
      the value of the runId record component
    • workflowName

      public String workflowName()
      Returns the value of the workflowName record component.
      Returns:
      the value of the workflowName record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • lastNode

      public String lastNode()
      Returns the value of the lastNode record component.
      Returns:
      the value of the lastNode record component
    • error

      public String error()
      Returns the value of the error record component.
      Returns:
      the value of the error record component
    • triggerType

      public String triggerType()
      Returns the value of the triggerType record component.
      Returns:
      the value of the triggerType record component
    • startedBy

      public String startedBy()
      Returns the value of the startedBy record component.
      Returns:
      the value of the startedBy record component
    • calledBy

      public String calledBy()
      Returns the value of the calledBy record component.
      Returns:
      the value of the calledBy record component
    • calledAtNode

      public String calledAtNode()
      Returns the value of the calledAtNode record component.
      Returns:
      the value of the calledAtNode record component
    • calledVia

      public String calledVia()
      Returns the value of the calledVia record component.
      Returns:
      the value of the calledVia record component
    • revision

      public Integer revision()
      Returns the value of the revision record component.
      Returns:
      the value of the revision record component
    • startedAt

      public LocalDateTime startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component
    • endedAt

      public LocalDateTime endedAt()
      Returns the value of the endedAt record component.
      Returns:
      the value of the endedAt record component
    • graph

      public WorkflowGraphView graph()
      Returns the value of the graph record component.
      Returns:
      the value of the graph record component
    • visits

      public List<WorkflowRunView.Visit> visits()
      Returns the value of the visits record component.
      Returns:
      the value of the visits record component
    • live

      public List<WorkflowRunView.Live> live()
      Returns the value of the live record component.
      Returns:
      the value of the live record component
    • escapeBranches

      public List<WorkflowRunView.EscapeBranch> escapeBranches()
      Returns the value of the escapeBranches record component.
      Returns:
      the value of the escapeBranches record component
    • activations

      public List<WorkflowRunView.Activation> activations()
      Returns the value of the activations record component.
      Returns:
      the value of the activations record component
    • path

      public WorkflowRunView.Path path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • fullTrace

      public boolean fullTrace()
      Returns the value of the fullTrace record component.
      Returns:
      the value of the fullTrace record component
    • admin

      public boolean admin()
      Returns the value of the admin record component.
      Returns:
      the value of the admin record component