Package com.axelor.workflow.view
Record Class WorkflowGraphView
java.lang.Object
java.lang.Record
com.axelor.workflow.view.WorkflowGraphView
- Record Components:
nodes- every node of the definition, in declaration orderedges- every link between them, labelled where the author named the branchlayout- the author's orientation (horizontal/vertical), or null
public record WorkflowGraphView(List<WorkflowGraphView.GraphNode> nodes, List<WorkflowGraphView.GraphEdge> edges, String layout)
extends Record
Render-ready, sanitized view of a workflow's graph, built by
WorkflowGraphBuilder.
Structural facts only; never a script body, an expression or an agent prompt. It is shown to any reader of the record, so the omissions are a security boundary.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne link.static final recordOne node, as the viewer draws it.static final recordOne point of an edge's route, as numbers: a decimal would reach the client as a string. -
Constructor Summary
ConstructorsConstructorDescriptionWorkflowGraphView(List<WorkflowGraphView.GraphNode> nodes, List<WorkflowGraphView.GraphEdge> edges) WorkflowGraphView(List<WorkflowGraphView.GraphNode> nodes, List<WorkflowGraphView.GraphEdge> edges, String layout) Creates an instance of aWorkflowGraphViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionedges()Returns the value of theedgesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.layout()Returns the value of thelayoutrecord component.nodes()Returns the value of thenodesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorkflowGraphView
public WorkflowGraphView(List<WorkflowGraphView.GraphNode> nodes, List<WorkflowGraphView.GraphEdge> edges) -
WorkflowGraphView
public WorkflowGraphView(List<WorkflowGraphView.GraphNode> nodes, List<WorkflowGraphView.GraphEdge> edges, String layout) Creates an instance of aWorkflowGraphViewrecord class.
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
nodes
Returns the value of thenodesrecord component.- Returns:
- the value of the
nodesrecord component
-
edges
Returns the value of theedgesrecord component.- Returns:
- the value of the
edgesrecord component
-
layout
Returns the value of thelayoutrecord component.- Returns:
- the value of the
layoutrecord component
-