Adding a Subflow Diagram Element
Functions
A subflow allows you to use other activated flows within a flow. For complex service scenarios, you can break down a flow into subflows. By defining and activating these subflows, you can then call them within the main flow to achieve comprehensive functionality.
Using a Subflow Diagram Element
- On the flow designer, choose Basic and drag the Subflow diagram element to the canvas.
- Click the subflow diagram element in the canvas, click
, and configure basic information.
Table 1 Parameter description Parameter
Description
Label
Label of the diagram element, which is displayed on the flow design page. The system automatically assigns a value in a specific Flowsequence number format, with the sequence number starting at 0 for each type of diagram element.
Name
Diagram element name, which must be unique in the current flow. The naming requirements are as follows:
- Value: 1–80 characters.
- Start with a letter and can contain letters, digits, and underscores (_). It cannot end with an underscore (_).
Description
Description of the diagram element.
Value: 1–255 characters.
- Click
to select a flow instance and enter the input parameters and output parameters.
Figure 1 Configuring a subflow diagram elementTable 2 Parameters for configuring a subflow diagram element Parameter
Description
Flow Instance
Select a flow.
Only the activated flows can be called by other flows as sub-flows.
Start New Transaction to Run Subflow
If this option is selected, multiple sub-flows can be executed concurrently in a new transaction, improving efficiency. If a sub-flow fails to be executed, the execution of other sub-flows is not affected.
Input Parameters/Target
Input parameter name of a sub-flow. Click Add Row and select a value for Target.
Input Parameters/Source
Variable in a flow, which is used to assign a value to the target. You can either type in the value directly or drag a variable from the context to pass its value to an input parameter in a sub-flow.
Output Parameters/Source
Output parameter name of a sub-flow. Click Add Row and select a value for Source.
Output Parameters/Target
Variable in a flow, which assigns the output parameters from a sub-flow to a variable within the main flow. You can do this by setting the output of the sub-flow to a variable in the context.
- After the configuration is complete, click
to save the configuration.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot