DescribeCurrentNodeInfo
更新时间:
调用DescribeCurrentNodeInfo获取当前节点的流程信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 
                                     名称  | 
                                
                                     类型  | 
                                
                                     是否必选  | 
                                
                                     示例值  | 
                                
                                     描述  | 
                            
| Action | String | 是 | DescribeCurrentNodeInfo | 系统规定参数。取值:DescribeCurrentNodeInfo。  | 
        
| InstanceId | String | 是 | 4****89 | 云市场订单实例ID  | 
        
返回数据
名称  | 
                                类型  | 
                                示例值  | 
                                描述  | 
                            
| Success | Boolean | true | 成功状态标识  | 
| RequestId | String | 00eb4de1-6cff-4f56-833e-7b1e070e398d | 请求id  | 
| Result | Object | 成功流程节点信息  | 
|
| NextNodeId | Long | 8473 | 下一个流程节点id  | 
| StepNo | Integer | 3 | 所属流程节点的序号  | 
| AutoFinishNode | Boolean | false | 是否自动完成节点  | 
| FinalStepNo | Integer | 4 | 最后节点的序号  | 
| PreviousNodeId | Long | 8471 | 上一个流程节点id  | 
| ParentNodeId | Long | 0 | 父级流程节点id  | 
| GmtExpired | Long | 1588920725000 | 流程节点超时时间(unix时间戳)  | 
| OperatorRole | String | Provider | 流程节点操作人角色,取值:-system:系统-custom:用户  | 
| GmtStart | Long | 1588834325000 | 流程节点开始时间(unix时间戳)  | 
| NodeStatus | String | Starting | 节点执行状态,取值:-NotStart:未开始-Starting:进行中-Cancel:已取消-Finish:已完成  | 
| NodeName | String | 等待服务开通 | 节点名称  | 
| GmtFinished | Long | 1588920725000 | 流程节点完成时间(unix时间戳)  | 
| AllowRollbackNode | Boolean | false | 是否允许执行回滚到上一个流程节点  | 
| 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" } ]
 | 
| NeedAttachment | Boolean | false | 是否强制要求上传附件  | 
| NodeId | Long | 8472 | 流程节点id  | 
示例
请求示例
http(s)://market.aliyuncs.com/?Action=DescribeCurrentNodeInfo
&InstanceId=4****89
&公共请求参数
                                正常返回示例
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeCurrentNodeInfoResponse>
    <Success>true</Success>
    <RequestId>00eb4de1-6cff-4f56-833e-7b1e070e398d</RequestId>
    <Result>
        <NextNodeId>8473</NextNodeId>
        <StepNo>3</StepNo>
        <AutoFinishNode>false</AutoFinishNode>
        <FinalStepNo>4</FinalStepNo>
        <PreviousNodeId>8471</PreviousNodeId>
        <ParentNodeId>0</ParentNodeId>
        <GmtExpired>1588920725000</GmtExpired>
        <OperatorRole>Provider</OperatorRole>
        <GmtStart>1588834325000</GmtStart>
        <NodeStatus>Starting</NodeStatus>
        <NodeName>等待服务开通</NodeName>
        <GmtFinished>1588920725000</GmtFinished>
        <AllowRollbackNode>false</AllowRollbackNode>
        <TemplateForm>[ {"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"}]</TemplateForm>
        <NeedAttachment>false</NeedAttachment>
        <NodeId>8472</NodeId>
    </Result>
</DescribeCurrentNodeInfoResponse>
                                        JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
  "Success" : true,
  "RequestId" : "00eb4de1-6cff-4f56-833e-7b1e070e398d",
  "Result" : {
    "NextNodeId" : 8473,
    "StepNo" : 3,
    "AutoFinishNode" : false,
    "FinalStepNo" : 4,
    "PreviousNodeId" : 8471,
    "ParentNodeId" : 0,
    "GmtExpired" : 1588920725000,
    "OperatorRole" : "Provider",
    "GmtStart" : 1588834325000,
    "NodeStatus" : "Starting",
    "NodeName" : "等待服务开通",
    "GmtFinished" : 1588920725000,
    "AllowRollbackNode" : false,
    "TemplateForm" : "[ {\"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\"}]",
    "NeedAttachment" : false,
    "NodeId" : 8472
  }
}
                    错误码
| 
                                     HttpCode  | 
                                
                                     错误码  | 
                                
                                     错误信息  | 
                                
                                     描述  | 
                            
| 400 | IllegalRequest | Illegal request. | 请求参数异常 | 
| 400 | IllegalParameter | Illegal parameter %s. | 参数异常 | 
| 400 | IllegalResult | Illegal result. | 数据结果异常 | 
| 400 | IllegalPermission | Permission Denied. | 该账号没有权限 | 
| 500 | InternalError | The request processing has failed due to some unknown error. | 请求发生系统异常 | 
访问错误中心查看更多错误码。
该文章对您有帮助吗?