Workflow Reference
In Rill Flow, a workflow can reference another pre-defined workflow within its definition. This allows for the reuse of processes and enables the referenced workflow to act as a task within the current workflow.This would result in a process replication and would allow another defined workflow to be implemented as a task node of the current workflow.
For example, in a YAML configuration file, another workflow can be referenced as follows:
type: flow
dagName: sample_dag
tasks:
- name: A
category: function
resourceName: rillflow://descriptorId
Here, the protocol part of resourceName
is rillflow
, indicating that resourceName
points to the descriptorId of another DAG diagram. When the specified workflow is completed or fails, the status of the current task will align with the execution status of that workflow, becoming either successful or failed.When the specified workflow is completed or failed, the current task status will be the same as that workflow, that is, success or failure.
This referencing mechanism simplifies the reuse of workflows, enhancing the flexibility and maintainability of workflow design.