描述
添加工作流实例。
请求
URL
https://api.dadayun.cn/v1/workflow/templates/$id/instances/$instanceId/updateStatus
HTTP请求方式
PUT
HTTP请求参数
名称 | 是否必需 | 类型 | 描述 |
---|---|---|---|
id | 是 | String | 工作流模板Id |
instanceId | 是 | String | 工作流实例Id |
nodeId | 是 | String | 节点Id |
actionResultType | 是 | Number | 审批结果类型: - 1 同意 - 2 反对 - 3 否决 - 4 撤回 - 10 继续 - 11 挂起 - 12 终止 |
actionMemo | 是 | String | 审批意见 |
wfDataObjectInstances | 是 | Object[] | 工作流表单对象实例列表字符串。参考公共参数 WFDataInstances |
actors | 否 | Object[] | 指定审批者字符串。 参考公共参数 actors |
keyOption | 否 | String | 字段属性类型 |
响应
- 无返回参数
示例
请求示例
HTTP/1.1
PUT /v1/workflow/templates/55e91105-110e-44a2-b99d-37892cb5e7d6/instances/7d6b79d0-71bf-4043-8cbf-fac0cadf8e44/updateStatus
Host: api.dadayun.cn
Date: Thu, 30 Aug 2018 02:55:22 GMT
正常返回示例
HTTP/1.1 200 OK
Date: Thu, 30 Aug 2018 02:55:22 GMT
Content-Type: application/json; charset=utf-8
异常返回示例
HTTP/1.1 500 Internal Server Error
Date: Thu, 30 Aug 2018 02:55:22 GMT
Content-Type: application/json; charset=utf-8
{
"Code": "InternalError",
"Message": "未知错误"
}