0
点赞
收藏
分享

微信扫一扫

Flowable入门系列文章146 - 在历史流程实例上创建新评论

表1.对历史流程实例 - URL参数创建新评论

参数需要描述
processInstanceId创建注释的流程实例的ID。

请求正文:

{
"message" : "This is a comment.",
"saveProcessInstanceId" : true
}

saveProcessInstanceId如果true保存具有注释的任务的进程实例标识,则参数是可选的。

成功回应机构:

{
"id" : "123",
"taskUrl" : "http://localhost:8081/flowable-rest/service/runtime/tasks/101/comments/123",
"processInstanceUrl" : "http://localhost:8081/flowable-rest/service/history/historic-processinstances/100/comments/123",
"message" : "This is a comment on the task.",
"author" : "kermit",
"time" : "2014-07-13T13:13:52.232+08:00",
"taskId" : "101",
"processInstanceId" : "100"
}

表2.在历史流程实例上创建新评论 - 响应代码

响应码描述
201表示评论已创建并返回结果。
400表示请求中缺少评论。
404指示未找到请求的历史流程实例。
举报

相关推荐

0 条评论