Package com.axelor.workflow.compiler
Class WorkflowGraphs
java.lang.Object
com.axelor.workflow.compiler.WorkflowGraphs
Compiles stored workflow XML into an immutable plan, cached by XML content.
-
Method Summary
Modifier and TypeMethodDescriptionstatic WorkflowPlancompile(MetaWorkflow def) static WorkflowPlanCompile a graph from its XML, as a pinned revision is stored.static WorkflowPlanCompile the revision a run is pinned to, for every resume path; null when it is gone or no longer compiles.static WorkflowPlandescendToBranch(WorkflowPlan runPlan, MetaWorkflowBranch token) The graph one branch walks: the run's own, or the body a region's branch walks.
-
Method Details
-
compile
-
compile
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
Compile the revision a run is pinned to, for every resume path; null when it is gone or no longer compiles. -
descendToBranch
The graph one branch walks: the run's own, or the body a region's branch walks.
-