Node Function
The Workflow Node belongs to the Information Processing Node, supporting users to introduce workflows in the "To be released" and "Released" status as nodes into the current workflow. It is commonly used for reusing workflow logic to achieve modular split and management of complex tasks. For example: Workflow A is for confirming user profiles, and Workflow B is for recommending products. Workflow B can introduce Workflow A as a workflow node into the canvas and execute subsequent nodes based on user profiles.
Directions
Refer to Workflow
Support users to introduce workflows with "To be released" and "Released" status. Upon success, show the necessary input variables for calling the workflow in "Input variables of the workflow". Support nested workflows with a maximum of 5 layers.
Input variables of the workflow
Automatically display the necessary input variables based on the introduced workflow. Only support user configuration of the "data source" option, with two options: "refer" and "input". "Refer" allows selecting output variables from all preceding nodes, while "input" supports manually filling in a fixed value.
Output Variable
The output variable processed by this node defaults to the output of the introduced workflow, as well as the runtime error message Error (data type is object, this field is empty during normal operation). Manual addition is not supported.
Handling error
Exception handling can be enabled manually, supporting exception retry and output content configuration for anomalies. The configuration includes the following content.
|
Max Retry Attempts | The maximum number of times to rerun when the node is running exceptionally. If retries exceed the set number of times, consider that node call failed and return the "output variable for anomalies" content, defaulting to 3 times. |
Retry Interval | Interval between each rerun, default is 1 second. |
Exception Output Variable | The output variable returned by the node when exceeding the maximum number of retries. |
Application Example
For details, please refer to the Start Node example. FAQs
1. Can I modify the imported workflow on the workflow configuration page?
Modifying the imported workflow on the workflow configuration page is unsupported. If modifications are needed, you can click "View" to enter the sub-workflow and make changes.
2. Can I replace the workflow on the workflow configuration page?
The workflow node requires selecting the imported workflow first before creation. Once created, replacing the imported workflow is not supported.