This topic describes how to view execution details using the console and the Command-Line Interface (CLI).
Using the console
-
Log on to the Serverless Workflow console.
-
On the Flows page, click the name of the desired flow.
-
On the Flow page of the target flow, select the execution that you want to view.
-
On the Execution page, you can view the workflow definition, result, visualized execution information, input, and output.
The Basic Information section at the top of the page displays the execution's name, creation time, status, and end time. In the Workflow Definition and Visual Workflow section below, the Visual Workflow tab displays a graph of the execution, showing the status of each state. The State Information panel on the right shows detailed information for the selected state.
Using the CLI
-
Run the following command to view the details of a specific execution.
aliyun fnf DescribeExecution --FlowName asdasd --ExecutionName vvvExpected output:
{ "Name": "vvv", "FlowName": "asdasd", "FlowDefinition": "Type: StateMachine\nName: asdasd\nSpecVersion: v1\nStartAt: Hello World\nStates:\n - Type: Pass\n Name: Hello World\n End: true\n", "Input": "{\n \"key\": \"hello world\"\n}", "Output": "{\"key\":\"hello world\"}", "Status": "Succeeded", "StartedTime": "2024-06-18T07:58:39.968Z", "StoppedTime": "2024-06-18T07:58:40.084Z", "RequestId": "8ff56c05-5316-0d92-f32e-1408dfafe778" } -
Run the following command to list all executions for a flow.
aliyun fnf ListExecutions --FlowName cli_guide_1 --Limit 1Expected output:
{ "Executions": [ { "Name": "vvv", "FlowName": "asdasd", "FlowDefinition": "Type: StateMachine\nName: asdasd\nSpecVersion: v1\nStartAt: Hello World\nStates:\n - Type: Pass\n Name: Hello World\n End: true\n", "Input": "{\n \"key\": \"hello world\"\n}", "Output": "{\"key\":\"hello world\"}", "Status": "Succeeded", "StartedTime": "2024-06-18T07:58:39.968Z", "StoppedTime": "2024-06-18T07:58:40.084Z" } ], "NextToken": "CAZDM5MzIzOTY0MmQzNDY1Mzg2NDJkMzgzNjY2MzQyZDM5NjIzNDM2NjM2NjY1NjYzNDY1NjI2MjIzN*****", "RequestId": "c6574f75-97e0-e4bc-897c-e9fa48625438" }NoteThe Limit parameter specifies the number of executions to return. If more results exist, the response includes a
NextToken. Use the--NextTokenparameter in a subsequent request to retrieve the next page of results.