All Products
Search
Document Center

CloudFlow:Execute a workflow

Last Updated:Jul 03, 2024

This topic describes how to execute a workflow and view the execution result.

Background information

This example illustrates how an execution input is passed to a task step and then to the function in Function Compute when input mappings and output mappings are not defined. This example also illustrates how the function output is passed to the task step and finally becomes the output of the workflow execution. F

You can call the StartExecution API operation to execute a workflow or call the DescribeExecution API operation to view the execution result.

Procedure

  1. Log on to the Serverless Workflow console.

  2. On the Flows page, select the workflow that you want to execute and view the workflow information.

    list-flows-1

  3. On the Details page of the workflow, click Start Execution.

  4. In the Execution Name (Optional) field, enter an execution name.

  5. Set a workflow input for the execution.

    • Enter {"name": "Function Flow"} in the Input (Optional) section. Click Start Execution.

      After the execution is started, the system automatically goes to the Execute page. You can view the execution results. The workflow output is {"hello": "Function Flow"}.

    • Enter {} in the Input (Optional) section. Click Start Execution.

      After the execution is started, the system automatically goes to the Execute page. You can view the execution results. The workflow output is {"hello": "world"}.