Managing Flows
Running Flows
After a flow is developed, you can run the flow to verify the results. If the output does not meet the expectation, you can use the debug tool to quickly pinpoint where the output falls short.
- Log in to the application designer by referring to Logging In to the Application Designer.
- In the navigation pane, choose Logic.
- Move the cursor to the corresponding flow, click
, and choose Edit. The flow design page is displayed.
- Click
in the upper part of the editor to save the flow.
After the settings are saved, the system compiles the flow. If an error or warning is displayed, click OK and modify the flow on the flow editor page. Save the modification until no error or warning is reported.
- After the settings are saved, click
in the upper part of the page to run the flow.
- On the page that is displayed, set parameters and click Run.
Enter input parameters if required and click Run. If you do not need to enter any input parameters, click Run.
Table 1 Parameter description Parameter
Description
Header Params
Parameter configuration of the request header. Key indicates the parameter name, and Value indicates the parameter value.
Click
in front of the header parameter to specify Key and Value. Click Add Row to add parameters.
responseType('arraybuffer')
Response type. If this parameter is selected, the response returned is a JavaScript ArrayBuffer containing binary data.
Input Parameters
Input parameters and values of the running flow instance.
- Check whether the debugging result on the output tab page meets the expectation.
Table 2 Output Debugging Result
Value
View Trace
After you click this button, the log tracker dialog box is displayed, showing the run logs of the flow instance.
Message
Indicates the debugging result.
- Success
- The values %!v(BADINDEX) and Parameter name are invalid or in an invalid format.
Outputs
Check whether the output of the flow is as expected.
- If the output meets expectations, click
in the upper part of the flow designer page to activate the flow.
- If the output does not meet your expectation, click Tracer in the upper right corner of the flow designer page to go to the tracer page and view details.
On the tracer page, view details about each step of the flow. Check which step does not meet your expectation.
Figure 1 Log tracer
Viewing Flow Details
After a flow is created, you can view its basic information, input parameters, and output parameters on its details page.
- Log in to the application designer by referring to Logging In to the Application Designer.
- In the navigation pane, choose Logic.
- Move the cursor to
of a created flow and click Detail.
- On the flow details page, view the basic information and input/output parameters of the flow.
Editing a Flow
After a flow is created, if its service logic changes, you can modify and adjust the flow.
- Log in to the application designer by referring to Logging In to the Application Designer.
- In the navigation pane, choose Logic.
- Move the cursor to
of a created flow and click Edit.
- Redesign the flow.
Moving a Flow
After a flow is created, you can move the flow to an application with development permissions. For example, if a flow created in application A is needed in application B, you can clone it in application A and move the clone to application B.
- Log in to the application designer by referring to Logging In to the Application Designer.
- In the navigation pane, choose Logic.
- Move the cursor to
of a created flow and click Move.
- Select the elements to be moved and click Next.
- Select the target application and click Confirm. The selected elements are moved to this application.
The flow can be moved only to applications with development permissions.
Cloning a Flow
You can clone a flow to an application. For example, if application A contains flows with similar functions, you can clone one flow to make a new one. This allows you to editing the clone without starting the creation process over.
- Log in to the application designer by referring to Logging In to the Application Designer.
- In the navigation pane, choose Logic.
- Move the cursor to
of a created flow and click Clone.
- Set the flow label and name. Click Confirm.
After the clone is successful, you can view the cloned flow in the flow directory.
Deleting a Flow
If a flow is no longer used, you can delete it from the application to prevent it from occupying the resource quota of the account.
- Log in to the application designer by referring to Logging In to the Application Designer.
- In the navigation pane, choose Logic.
- Move the cursor to
of a created flow and click Delete.
- In the displayed dialog box, select Delete the records in the resource. Click Confirm. Then the flow is deleted.
If you do not select Delete the records in the resource, only the flow is deleted. The function modules that use the flow are not affected.
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