0
点赞
收藏
分享

微信扫一扫

Flowable入门系列文章116 - 进程实例 05

1、让流程实例参与进来

表1.参与流程实例的人员 - URL参数

参数需要描述
processInstanceId流程实例的id到链接。

表2.涉及流程实例的人员 - 响应代码

响应码描述
200指示已找到流程实例并返回链接。
404指示未找到请求的流程实例。

成功回应机构:

[
{
"url":"http://localhost:8182/runtime/process-instances/5/identitylinks/users/john/customType",
"user":"john",
"group":null,
"type":"customType"
},
{
"url":"http://localhost:8182/runtime/process-instances/5/identitylinks/users/paul/candidate",
"user":"paul",
"group":null,
"type":"candidate"
}
]

请注意,该参数groupId将始终为空,因为只有用户可以参与进程实例。

2、将涉及的用户添加到流程实例

表3.将涉及的用户添加到流程实例 - URL参数

参数需要描述
processInstanceId流程实例的id到链接。

请求正文:

{
"userId":"kermit",
"type":"participant"
}

这两个userId和type是必需的。

表4.将涉及的用户添加到流程实例 - 响应代码

响应码描述
201指示已找到流程实例并创建链接。
400表示请求的主体不包含userId或类型。
404指示未找到请求的流程实例。

成功回应机构:

{
"url":"http://localhost:8182/runtime/process-instances/5/identitylinks/users/john/customType",
"user":"john",
"group":null,
"type":"customType"
}

请注意,该参数groupId将始终为空,因为只有用户可以参与进程实例。

举报

相关推荐

0 条评论