Call the ListWorkFlowNodes to obtain the approval node list.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListWorkFlowNodes

The operation that you want to perform. Valid values: ListWorkFlowNodes

Tid Long Yes -1

The ID of the tenant.

SearchName String No admin

Search by node name

Response parameters

Prameter Type Sample response Description
RequestId String CFD8FE00-36D9-4 C1 B- 940D-65A7B7******

The ID of the request.

Success Boolean True

Indicates whether the request was successful.

ErrorMessage String UnknownError

Error message

ErrorCode String UnknownError

Error code

WorkflowNodes Array

The information of the approval node.

NodeName String test

Node Name

Comment String test

Remarks

NodeId Long 123

Node ID

NodeType String SYS

The type of the node. Valid values:

  • SYS: System defined
  • USER_LIST: a user-defined dictionary.
CreateUserId Long 123

The user ID of the Creator. This must be different from the Alibaba Cloud uid.

CreateUserNickName String test

The nickname of the creator.

AuditUsers Array

Approver information

UserId Long 123

The user ID of the approver. Note that this is not an Alibaba Cloud uid.

NickName String test

Approval nickname

RealName String test

Approver's real name

Examples

Sample request

http(s)://[Endpoint]/? Action=ListWorkFlowNodes
&Tid=-1
&<Common request parameters>

Sample success responses

XML format

<WorkFlowNodes>
    <WorkflowNode>
        <Comment> the system node is dynamically calculated and approved by the administrator. </Comment>
        <NodeName>Admin</NodeName>
        <NodeType>SYS</NodeType>
        <NodeId>3**3</NodeId>
        <AuditUsers>
        </AuditUsers>
    </WorkflowNode>
</WorkFlowNodes>
<RequestId>CFD8FE00-36D9-4C1B-940D-65A7B7******</RequestId>
<Success>true</Success>

JSON format

{
  "WorkFlowNodes": {
    "WorkflowNode": [
      {
        "Comment": "system node. It is a dynamic node. The system administrator approves the node.",
        "NodeName": "Admin",
        "NodeType": "SYS",
        "NodeId": 3**3,
        "AuditUsers": {
          "AuditUser": []
        }
      }
    ]
  },
  "RequestId": "CFD8FE00-36D9-4C1B-940D-65A7B7******",
  "Success": true
}

Error codes

For a list of error codes, visit the API Error Center.