0
点赞
收藏
分享

微信扫一扫

Flowable入门系列文章137 - 任务 11

i奇异 2022-02-05 阅读 24
java

1、获取关于任务的所有评论

表1.获取关于任务的所有评论 - URL参数

参数需要描述
任务id获取评论的任务的ID。

成功回应机构:

[
{
"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"
},
{
"id" : "456",
"taskUrl" : "http://localhost:8081/flowable-rest/service/runtime/tasks/101/comments/456",
"processInstanceUrl" : "http://localhost:8081/flowable-rest/service/history/historic-processinstances/100/comments/456",
"message" : "This is another comment on the task.",
"author" : "gonzo",
"time" : "2014-07-13T13:13:52.232+08:00"
"taskId" : "101",
"processInstanceId" : "100"
}
]

表2.获取关于任务的所有评论 - 响应代码

响应码描述
200表示找到任务并返回评论。
404表示找不到请求的任务。

2、获取对任务的评论

表3.获取有关任务的注释 - URL参数

参数需要描述
任务id获取评论的任务的ID。
commentId评论的ID。

成功回应机构:

{
"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"
}

表4.获取有关任务的评论 - 响应代码

响应码描述
200表示找到任务和评论,并返回评论。
404表示未找到请求的任务,或者任务没有给定ID的注释。
举报

相关推荐

0 条评论