调用DescribeProjectNodes获取项目流程节点列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeProjectNodes

系统规定参数。取值:DescribeProjectNodes。

InstanceId String 4****89

云市场订单实例ID。

返回数据

名称 类型 示例值 描述
RequestId String 937fee1f-26bb-4b6e-8def-977a6bdaa1e5

请求ID

Result Array

AllowRollbackNode Boolean false

是否允许执行回滚到上一个流程节点

AutoFinishNode Boolean false

节点超时是否自动完成

FinalStepNo Integer 4

最终流程节点的序号

GmtExpired Long 1588834325000

流程节点超时时间(Unix时间戳)

GmtFinished Long 1588834325000

流程节点完成时间(Unix时间戳)

GmtStart Long 1588834325000

流程节点开始时间(Unix时间戳)

NeedAttachment Boolean false

是否强制要求上传附件

NextNodeId Long 8472

下一个流程节点ID

NodeId Long 8471

流程节点ID

NodeName String 分配服务商节点

节点名称

NodeStatus String Finish

节点执行状态,取值:

  • NotStart:未开始
  • Starting:进行中
  • Cancel:已取消
  • Finish:已完成
OperatorRole String System

流程节点操作人角色,取值:

  • System:系统
  • Custom:客户
  • Provider:服务提供商
ParentNodeId Long 0

父级流程节点ID

PreviousNodeId Long 8470

上一个流程节点ID

StepNo Integer 2

所属流程节点的序号

TemplateForm String [ {"fieldKey": "TFD0","isRequired": true,"maxLength": 50, "placeHolder": "姓名","stepNum": 0,"title": "收货人姓名","type": "text" },{ "fieldKey": "TFD1","isRequired": true,"maxLength": 50,"placeHolder": "手机号码","stepNum": 1,"title": "收货人电话","type": "text"},{"fieldKey": "TFD2","isRequired": true,"maxLength": 50,"placeHolder": "省市区街道门牌号码","stepNum": 2,"title": "详细收货地址","type": "textarea"}]

流程节点表单内容,内容为JSON。

示例代码如下:


[
    {
        "fieldKey": "TFD0", //表单key
        "isRequired": true, //是否必填项
        "maxLength": 50, //最大值长度
        "placeHolder": "姓名", //表单值简介
        "stepNum": 0, //排序值(升序)
        "title": "收货人姓名", //表单标题
        "type": "text" //表单类型
    },
    {
        "fieldKey": "TFD1",
        "isRequired": true,
        "maxLength": 50,
        "placeHolder": "手机号码",
        "stepNum": 1,
        "title": "收货人电话",
        "type": "text"
    },
    {
        "fieldKey": "TFD2",
        "isRequired": true,
        "maxLength": 50,
        "placeHolder": "省市区街道门牌号码",
        "stepNum": 2,
        "title": "详细收货地址",
        "type": "textarea"
    }
]

Success Boolean true

成功状态标识

示例

请求示例

http(s)://market.aliyuncs.com/?Action=DescribeProjectNodes
&InstanceId=4****89
&<公共请求参数>

正常返回示例

XML 格式

<DescribeProjectNodesResponse>
  <requestId>937fee1f-26bb-4b6e-8def-977a6bdaa1e5</requestId>
  <result>
        <allowRollbackNode>false</allowRollbackNode>
        <autoFinishNode>false</autoFinishNode>
        <finalStepNo>4</finalStepNo>
        <gmtFinished>1588834325000</gmtFinished>
        <gmtStart>1588834325000</gmtStart>
        <gmtExpired></gmtExpired>
        <needAttachment>false</needAttachment>
        <nextNodeId>8471</nextNodeId>
        <nodeId>8470</nodeId>
        <nodeName>分配服务商节点</nodeName>
        <nodeStatus>Finish</nodeStatus>
        <operatorRole>System</operatorRole>
        <parentNodeId>0</parentNodeId>
        <stepNo>1</stepNo>
  </result>
  <result>
        <allowRollbackNode>false</allowRollbackNode>
        <autoFinishNode>false</autoFinishNode>
        <finalStepNo>4</finalStepNo>
        <gmtFinished>1588834325000</gmtFinished>
        <gmtStart>1588834325000</gmtStart>
        <gmtExpired></gmtExpired>
        <needAttachment>false</needAttachment>
        <nextNodeId>8472</nextNodeId>
        <nodeId>8471</nodeId>
        <nodeName>分单</nodeName>
        <nodeStatus>Finish</nodeStatus>
        <operatorRole>System</operatorRole>
        <parentNodeId>0</parentNodeId>
        <previousNodeId>8470</previousNodeId>
        <stepNo>2</stepNo>
  </result>
  <result>
        <allowRollbackNode>false</allowRollbackNode>
        <autoFinishNode>false</autoFinishNode>
        <finalStepNo>4</finalStepNo>
        <gmtExpired>1588920725000</gmtExpired>
        <gmtStart>1588834325000</gmtStart>
        <gmtFinished></gmtFinished>
        <needAttachment>false</needAttachment>
        <nextNodeId>8473</nextNodeId>
        <nodeId>8472</nodeId>
        <nodeName>等待服务开通</nodeName>
        <nodeStatus>Starting</nodeStatus>
        <operatorRole>Provider</operatorRole>
        <parentNodeId>0</parentNodeId>
        <previousNodeId>8471</previousNodeId>
        <stepNo>3</stepNo>
  </result>
  <result>
        <allowRollbackNode>true</allowRollbackNode>
        <autoFinishNode>true</autoFinishNode>
        <finalStepNo>4</finalStepNo>
        <gmtExpired></gmtExpired>
        <gmtStart></gmtStart>
        <gmtFinished></gmtFinished>
        <needAttachment>false</needAttachment>
        <nodeId>8473</nodeId>
        <nodeName>项目完结确认</nodeName>
        <nodeStatus>NotStart</nodeStatus>
        <operatorRole>Customer</operatorRole>
        <parentNodeId>0</parentNodeId>
        <previousNodeId>8472</previousNodeId>
        <stepNo>4</stepNo>
  </result>
  <success>true</success>
</DescribeProjectNodesResponse>

JSON 格式

{
    "requestId": "937fee1f-26bb-4b6e-8def-977a6bdaa1e5",
    "result": [
        {
            "allowRollbackNode": false,
            "autoFinishNode": false,
            "finalStepNo": 4,
            "gmtFinished": 1588834325000,
            "gmtStart": 1588834325000,
            "gmtExpired": null,
            "needAttachment": false,
            "nextNodeId": 8471,
            "nodeId": 8470,
            "nodeName": "分配服务商节点",
            "nodeStatus": "Finish",
            "operatorRole": "System",
            "parentNodeId": 0,
            "stepNo": 1
        },
        {
            "allowRollbackNode": false,
            "autoFinishNode": false,
            "finalStepNo": 4,
            "gmtFinished": 1588834325000,
            "gmtStart": 1588834325000,
            "gmtExpired": null,
            "needAttachment": false,
            "nextNodeId": 8472,
            "nodeId": 8471,
            "nodeName": "分单",
            "nodeStatus": "Finish",
            "operatorRole": "System",
            "parentNodeId": 0,
            "previousNodeId": 8470,
            "stepNo": 2
        },
        {
            "allowRollbackNode": false,
            "autoFinishNode": false,
            "finalStepNo": 4,
            "gmtExpired": 1588920725000,
            "gmtStart": 1588834325000,
            "gmtFinished":null,
            "needAttachment": false,
            "nextNodeId": 8473,
            "nodeId": 8472,
            "nodeName": "等待服务开通",
            "nodeStatus": "Starting",
            "operatorRole": "Provider",
            "parentNodeId": 0,
            "previousNodeId": 8471,
            "stepNo": 3
        },
        {
            "allowRollbackNode": true,
            "autoFinishNode": true,
            "finalStepNo": 4,
            "gmtExpired": null,
            "gmtStart": null,
            "gmtFinished": null,
            "needAttachment": false,
            "nodeId": 8473,
            "nodeName": "项目完结确认",
            "nodeStatus": "NotStart",
            "operatorRole": "Customer",
            "parentNodeId": 0,
            "previousNodeId": 8472,
            "stepNo": 4
        }
    ],
    "success": true
}

错误码

访问错误中心查看更多错误码。