1、获取关于任务的所有评论
GET运行时/任务/ {taskId} /注释
表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、获取对任务的评论
GET运行时/任务/ {taskId} /评论/ {commentId}
表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的注释。 |
上面文章来自盘古BPM研究院:http://vue.pangubpm.com/
文章翻译提交:https://github.com/qiudaoke/flowable-userguide
了解更多文章可以关注微信公众号: