Package com.axelor.workflow.view
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne activation of one split.static final recordOne branch of an activation.static final recordOne escape branch this run spawned, read under the same access check as the run.static final recordSomewhere the run is stopped right now; a fork has one per outstanding branch.static final recordThe nodes a run passed and the edges it took, each within its graph; a node or edge is on it if any thread went that way.static final recordAn edge on the path, as the graph draws it.static final recordA node on the path;nodePathis the subflow it is in, null for the definition's.static final recordOne pass through a node; a loop yields several. -
Constructor Summary
ConstructorsConstructorDescriptionWorkflowRunView(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 aWorkflowRunViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivationsrecord component.booleanadmin()Returns the value of theadminrecord component.Returns the value of thecalledAtNoderecord component.calledBy()Returns the value of thecalledByrecord component.Returns the value of thecalledViarecord component.endedAt()Returns the value of theendedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of theescapeBranchesrecord component.booleanReturns the value of thefullTracerecord component.graph()Returns the value of thegraphrecord component.final inthashCode()Returns a hash code value for this object.lastNode()Returns the value of thelastNoderecord component.live()Returns the value of theliverecord component.path()Returns the value of thepathrecord component.revision()Returns the value of therevisionrecord component.runId()Returns the value of therunIdrecord component.Returns the value of thestartedAtrecord component.Returns the value of thestartedByrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetriggerTyperecord component.visits()Returns the value of thevisitsrecord component.Returns the value of theworkflowNamerecord component.
-
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 aWorkflowRunViewrecord class.- Parameters:
runId- the value for therunIdrecord componentworkflowName- the value for theworkflowNamerecord componentstatus- the value for thestatusrecord componentlastNode- the value for thelastNoderecord componenterror- the value for theerrorrecord componenttriggerType- the value for thetriggerTyperecord componentstartedBy- the value for thestartedByrecord componentcalledBy- the value for thecalledByrecord componentcalledAtNode- the value for thecalledAtNoderecord componentcalledVia- the value for thecalledViarecord componentrevision- the value for therevisionrecord componentstartedAt- the value for thestartedAtrecord componentendedAt- the value for theendedAtrecord componentgraph- the value for thegraphrecord componentvisits- the value for thevisitsrecord componentlive- the value for theliverecord componentescapeBranches- the value for theescapeBranchesrecord componentactivations- the value for theactivationsrecord componentpath- the value for thepathrecord componentfullTrace- the value for thefullTracerecord componentadmin- the value for theadminrecord 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 '=='. -
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
workflowName
Returns the value of theworkflowNamerecord component.- Returns:
- the value of the
workflowNamerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
lastNode
Returns the value of thelastNoderecord component.- Returns:
- the value of the
lastNoderecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
triggerType
Returns the value of thetriggerTyperecord component.- Returns:
- the value of the
triggerTyperecord component
-
startedBy
Returns the value of thestartedByrecord component.- Returns:
- the value of the
startedByrecord component
-
calledBy
Returns the value of thecalledByrecord component.- Returns:
- the value of the
calledByrecord component
-
calledAtNode
Returns the value of thecalledAtNoderecord component.- Returns:
- the value of the
calledAtNoderecord component
-
calledVia
Returns the value of thecalledViarecord component.- Returns:
- the value of the
calledViarecord component
-
revision
Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-
endedAt
Returns the value of theendedAtrecord component.- Returns:
- the value of the
endedAtrecord component
-
graph
Returns the value of thegraphrecord component.- Returns:
- the value of the
graphrecord component
-
visits
Returns the value of thevisitsrecord component.- Returns:
- the value of the
visitsrecord component
-
live
Returns the value of theliverecord component.- Returns:
- the value of the
liverecord component
-
escapeBranches
Returns the value of theescapeBranchesrecord component.- Returns:
- the value of the
escapeBranchesrecord component
-
activations
Returns the value of theactivationsrecord component.- Returns:
- the value of the
activationsrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
fullTrace
public boolean fullTrace()Returns the value of thefullTracerecord component.- Returns:
- the value of the
fullTracerecord component
-
admin
public boolean admin()Returns the value of theadminrecord component.- Returns:
- the value of the
adminrecord component
-