Class WorkflowGraphBuilder

java.lang.Object
com.axelor.workflow.view.WorkflowGraphBuilder

public final class WorkflowGraphBuilder extends Object
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 Details

    • build

      public static WorkflowGraphView build(String xml)
      The sanitized graph of xml, with expressions withheld.
    • build

      public static WorkflowGraphView build(String xml, boolean conditions)
      The sanitized graph of xml; 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.