All Products
Search
Document Center

CloudFlow:Execute a workflow

Last Updated:May 07, 2024

After a workflow is created, you can execute the workflow and view the execution results.

Background information

You can use one of the following methods to trigger the workflow.

  • Manual trigger: Start the workflow in the CloudFlow console.

  • Scheduled trigger: Create a scheduled task to automatically execute the workflow based on the specified time period.

  • Event-driven trigger: Trigger the workflow by listening to events of other Alibaba Cloud services, such as Object Storage Service (OSS) and ApsaraMQ.

  • API trigger: Start the workflow by calling an API operation of CloudFlow.

In the following example, the CloudFlow console is used to demonstrate how to execute a workflow and view the execution result.

Procedure

  1. Log on to the CloudFlow console. In the top navigation bar, select a region.

  2. In the left-side navigation pane, click Workflows. On the Workflows page, click the workflow that you want to manage.

  3. On the Execution Records tab of the details page of the workflow, click Started Execution. In the Execute Workflow panel, configure Execution Name (optional) and Input of Execution (optional), and then click OK.

    image

    Take note of the following items when you execute a workflow:

    • Each execution name must be unique within a workflow.

    • The input of execution must be in the JSON format.

      image.png

    After the execution is complete, you can monitor the execution status of the workflow instance, view the log output, and check the HTTP request and response details to ensure that the workflow proceeds and the HTTP request is executed as expected.

    image

References