Class WorkflowGraphs

java.lang.Object
com.axelor.workflow.compiler.WorkflowGraphs

public final class WorkflowGraphs extends Object
Compiles stored workflow XML into an immutable plan, cached by XML content.
  • Method Details

    • compile

      public static WorkflowPlan compile(MetaWorkflow def)
    • compile

      public static WorkflowPlan compile(String xml, String xmlId)
      Compile a graph from its XML, as a pinned revision is stored. Cached by content, so a pinned graph and the current one coexist.
      Parameters:
      xmlId - used only to name the workflow if compilation fails
    • compileForRun

      public static WorkflowPlan compileForRun(MetaWorkflowRun run)
      Compile the revision a run is pinned to, for every resume path; null when it is gone or no longer compiles.
    • descendToBranch

      public static WorkflowPlan descendToBranch(WorkflowPlan runPlan, MetaWorkflowBranch token)
      The graph one branch walks: the run's own, or the body a region's branch walks.