Package com.axelor.studio.service
Class StudioWorkflowCatalog
java.lang.Object
com.axelor.studio.service.StudioWorkflowCatalog
- All Implemented Interfaces:
WorkflowCatalog
A
WorkflowCatalog over Studio-authored workflows (the
StudioResource(type=WORKFLOW) rows within an app's dependency modules) unioned with deployed
MetaWorkflow rows. Lets the Studio designer validate subflow refs against flows that
exist but are not yet deployed, using the same core WorkflowLinker as the MetaWorkflow
save boundary.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axelor.workflow.compiler.WorkflowCatalog
WorkflowCatalog.WorkflowRef -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether a workflow with this identity is in the catalog.The refs declared by the workflowid, or none when it is absent or does not compile.Resolve arefname to an identity, orWorkflowCatalog.unresolvedRef(String)when unknown or ambiguous, so linking reports a violation rather than aborting.static List<WorkflowCatalog.WorkflowRef> subflowRefs(Workflow workflow) The subflow target refs declared by a parsed workflow, read from the stampedWorkflowLinker.subflowRefs(com.axelor.workflow.plan.WorkflowPlan).
-
Constructor Details
-
StudioWorkflowCatalog
-
-
Method Details
-
resolve
Description copied from interface:WorkflowCatalogResolve arefname to an identity, orWorkflowCatalog.unresolvedRef(String)when unknown or ambiguous, so linking reports a violation rather than aborting.- Specified by:
resolvein interfaceWorkflowCatalog
-
exists
Description copied from interface:WorkflowCatalogWhether a workflow with this identity is in the catalog.- Specified by:
existsin interfaceWorkflowCatalog
-
refsOf
Description copied from interface:WorkflowCatalogThe refs declared by the workflowid, or none when it is absent or does not compile.- Specified by:
refsOfin interfaceWorkflowCatalog
-
subflowRefs
The subflow target refs declared by a parsed workflow, read from the stampedWorkflowLinker.subflowRefs(com.axelor.workflow.plan.WorkflowPlan). Static so the designer can compute the refs of the workflow being saved without resolving it through the catalog. Empty when the workflow does not compile.
-