Execute a workflow

更新时间:
复制 MD 格式

After you create a workflow in CloudFlow, start an execution to run it. Each execution is an independent instance of the workflow with its own name, input, and lifecycle. You can start executions manually from the console, on a schedule, in response to events, or through the API.

Trigger methods

CloudFlow supports four ways to start a workflow execution:

MethodDescriptionUse case
Manual triggerStart the workflow from the CloudFlow console.Ad-hoc testing or one-time runs
Scheduled triggerRun the workflow automatically at specified intervals through a scheduled task.Recurring batch jobs or periodic data processing
Event-driven triggerRun the workflow in response to events from other Alibaba Cloud services, such as Object Storage Service (OSS) and ApsaraMQ.Real-time processing triggered by file uploads or message queue events
API triggerStart the workflow programmatically through a CloudFlow API operation.Automated pipelines or application-level orchestration

Start an execution from the console

Before you begin, make sure you have a workflow created in CloudFlow. For more information, see Create a workflow.

  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 execute.

  3. On the workflow details page, click the Execution Records tab, and then click Started Execution.

  4. In the Execute Workflow panel, configure the following parameters and click OK.

    ParameterRequiredDescription
    Execution NameNoA name for this execution. Must be unique within the workflow.
    Input of ExecutionNoInput data in JSON format to pass to the workflow.

    Execute Workflow panel

    Execution configuration

View execution results

After an execution completes, the Execution Records tab displays the results. Use this tab to:

  • Monitor execution status: Track whether the workflow instance is running, succeeded, or failed.

  • View log output: Check the log entries generated during each step.

  • Inspect HTTP details: Review the HTTP request and response payloads to verify that each step ran as expected.

Execution results

Start an execution through the API

To start and monitor workflow executions programmatically, use the following API operations:

API operationDescription
StartExecutionStarts an asynchronous workflow execution. Returns immediately while the workflow runs in the background.
StartSyncExecutionStarts a synchronous workflow execution and waits for the result before returning.
DescribeExecutionRetrieves the status and output of a workflow execution.

What to do next