Manage workflow executions
This topic describes how to manage workflow executions and view their details in the CloudFlow console. It also explains the details available for an execution, including special cases for Map states and Parallel states.
Start an execution
Log on to the CloudFlow console. In the top navigation bar, select a region.
On the Workflows, click the target workflow.
On the Execution Records tab of the workflow details page, click Started Execution. In the Start Execution panel, enter the Execution Name (optional) and Input of Execution (optional), and then click OK.
To execute a workflow, make sure that the following requirements are met:
Execution names must be unique for the same workflow.
If you provide an input, it must be a valid JSON object.
Stop an execution
To stop a running workflow, click Stop Execution on its details page.
Execution results
Details overview
After the execution is complete, you can view basic information such as the Execution Status and Execution Name on the Basic Information tab. On the Input and Output tab, you can view the Input and Output information for the execution. Additionally, you can view the workflow definition of the state machine on the Workflow Definitions tab.
The Basic Information tab also includes details such as Start Time, End Time, Duration, execution mode, and execution role.
Graphical and table views
Graphical View
On the Graphical View tab, you can select any state node to view its corresponding Enter content, Outputs, and Execution Event on the right. The selected state is also highlighted in the Table View.
After the workflow execution is complete, if the state machine includes a Map state, you can select an iteration number in the Map area to view the execution data for each iteration.
NoteIteration numbers start from #0, which represents the first iteration.
Table View
On the Table View tab, when you select a status node, its corresponding Enter content, Outputs, and Execution Event are displayed on the right. The status is also selected in the Graphical View.
If the state machine contains a Map state, after the workflow execution is complete, you can click the
icon in the list to view the execution data for each iteration.If the state machine contains a Parallel state, after the workflow execution is complete, you can click the
icon in the list to view the execution data for each parallel branch.
Execution events
Execution events provide a detailed record of each step in an execution, including its input, output, duration, and the cause of any failures.
The execution events list includes the following columns: ID, Event Type, State Name, State Type, Event Time, and Relative Time. You can expand an event to view its detailed input or output in JSON format.
If the state machine contains a Map state, after the execution is complete, a Map Run
link appears in the State Name column. Click Map Run
to view the execution details for the Map state, as shown in the following figure:
The Map Run execution details page includes the Basic Information and Input and Output tabs. The Basic Information tab shows the execution status, start time, end time, batch configurations (maximum items per batch and batch size), max concurrency, and fault tolerance policy, all of which are editable. The Item Processing Status section shows the progress percentage and duration, and uses metric cards to summarize the number of items that are pending, running, succeeded, failed, and stopped. At the bottom, the Map Run Execution Events table lists the execution name, number of items, execution status, start time, end time, and duration for each batch. You can filter by date and execution status.