View a workflow

更新时间:
复制 MD 格式

Learn how to view a workflow with the console and Alibaba Cloud CLI.

Use the console

  1. Log on to the Serverless Workflow console.

  2. The Workflows page lists all your workflows.

    The list of workflows includes the workflow name, creation time, last modified time, and Actions columns. To view details, find your workflow (for example, console_guide_1) and click its name.

  3. Click the workflow name to view its details.

    The workflow details page displays basic information, such as the workflow name, description, workflow role, and creation time. This page also contains the Executions, Definition, and Scheduled Executions tabs. In the upper-right corner, you can find the Edit, Monitoring and Alerts, and Delete buttons. On the Executions tab, you can click Start Execution to run the workflow, or filter executions by status or name.

Use the Alibaba Cloud CLI

  • To view a single workflow, run the following command:

    aliyun fnf DescribeFlow --Name cli_guide_1

    Expected output:

    # Command output
    {
      "Name": "cli_guide_1",
      "Description": "demo",
      "Definition": "version: v1\ntype: flow\nsteps:\n  - type: pass\n    name: pass1",
      "Id": "47ced55d-590b-482a-975f-915ac2365ad6",
      "Type": "FDL",
      "RoleArn": "acs:ram::xxx:xxx",
      "CreatedTime": "2024-06-24T02:31:43.359Z",
      "LastModifiedTime": "2024-06-24T02:31:43.359Z",
      "ExecutionMode": "Standard",
      "RequestId": "fc356cd5-11d8-ff64-0a78-47189da6833d"
    }            
  • To view a list of workflows, run the following command:

    aliyun fnf ListFlows --Limit 1

    Expected output:

    # Command output
    {
      "Flows": [
        {
          "Name": "cli_guide_1",
          "Description": "demo",
          "Definition": "version: v1\ntype: flow\nname: test\nsteps:\n  - type: pass\n    name: pass1",  
          "Id": "ddcb687d-3a25-46d2-8062-cea6673ed272",
          "Type": "FDL",
          "RoleArn": "acs:ram::xxx:xxx",
          "CreatedTime": "2024-06-06T06:32:52.04Z",
          "LastModifiedTime": "2024-06-06T06:32:52.04Z",
          "ExecutionMode": "Standard"
        }
      ],
      "NextToken": "MyWorkFlow",
      "RequestId": "1ae78dbf-6f9a-3f74-fbec-03a8c9523735"
    }
    Note

    The Limit parameter specifies the maximum number of workflows to return. If more workflows are available, the response includes a NextToken. Use the --NextToken parameter in your next request to retrieve the next page of results.