flowableパラレルノードジャンプおよび却下
10254 ワード
bpmn
/** * * * @param processId id * @param taskNames key * @param targetNodeName key */ public void taskJumpCmd(String processId, List
taskNames, String targetNodeName) { runtimeService.createChangeActivityStateBuilder() .processInstanceId(processId) .moveActivityIdsToSingleActivityId(taskNames, targetNodeName) .changeState(); } /** * * * @param processId id * @param taskNames id * @param targetNodeName id */ public void taskJumpCmd(String processId, String taskNames, List targetNodeName) { runtimeService.createChangeActivityStateBuilder() .processInstanceId(processId) .moveSingleActivityIdToActivityIds(taskNames, targetNodeName) .changeState(); }
/**
*
* @param processId id
*/
@GetMapping("parallelTaskJumpCmd/{processId}")
@ResponseBody
public void parallelTaskJumpCmd(@PathVariable("processId") String processId) {
List taskNames = new ArrayList<>();
taskNames.add("sid-71C4C1CE-19C3-48E6-BFDC-BD1CE66C771C");
taskNames.add("sid-39F5686C-74BC-4082-ACAE-5F0158ED4E0F");
taskNames.add("sid-26229EF7-76C7-414A-85A4-72A921B0B564");
flowableUtil.taskJumpCmd(processId, taskNames, "sid-94DEBBD9-DA1C-41E7-B6D1-3D3DBB11AFF4");
}
/**
*
* @param processId id
*/
@GetMapping("rejectTaskJumpCmd/{processId}")
@ResponseBody
public void rejectTaskJumpCmd(@PathVariable("processId") String processId) {
List taskNames = new ArrayList<>();
taskNames.add("sid-71C4C1CE-19C3-48E6-BFDC-BD1CE66C771C");
taskNames.add("sid-39F5686C-74BC-4082-ACAE-5F0158ED4E0F");
taskNames.add("sid-26229EF7-76C7-414A-85A4-72A921B0B564");
flowableUtil.taskJumpCmd(processId,"sid-94DEBBD9-DA1C-41E7-B6D1-3D3DBB11AFF4" , taskNames);
}
, ACT_HI_TASKINST , 。