Package com.axelor.workflow.view
Class WorkflowGraphBuilder
java.lang.Object
com.axelor.workflow.view.WorkflowGraphBuilder
Builds a
WorkflowGraphView from a workflow's stored XML, so module XML draws as well as
designer-authored definitions.
This is a security boundary. The viewer is shown to anyone who can read the
record, so expressions (script bodies, conditions, when/until, what a call runs
over) are gated by build(String, boolean), and agent prompts and approval assignments
are never sent. A new node type must decide again what is safe to show.
-
Method Summary
Modifier and TypeMethodDescriptionstatic WorkflowGraphViewThe sanitized graph ofxml, with expressions withheld.static WorkflowGraphViewThe sanitized graph ofxml; empty when the definition no longer parses.
-
Method Details
-
build
The sanitized graph ofxml, with expressions withheld. -
build
The sanitized graph ofxml; empty when the definition no longer parses.- Parameters:
conditions- whether expressions are drawn as the designer draws them; true only for the run view's administrator tier. Otherwise the flow's or node's id stands in.
-