
var_ids 为简单的数组:[1, 2, 3]
正常启动,则存在3个任务

加签代码
# 使用Rest API
function proc_inst_modify() {
curl -s -v 1 -X POST -H 'Content-Type: application/json' \
-d "{\"skipCustomListeners\": true, \"skipIoMappings\":true, \"instructions\": [{\"type\": \"startBeforeActivity\", \"activityId\": \"$2\"}] }" \
<http://127.0.0.1:8080/engine-rest/process-instance/$1/modification>
}
proc_inst_modify "1dec63bb-e3cf-11ed-926f-7ecf2183152a" "Node3"
加签成功


删除流程
function msg_deliver() {
curl -s -v 1 -X POST -H 'Content-Type: application/json' \
-d "{\"processInstanceId\": \"$1\", \"messageName\": \"$2\"}" \
<http://127.0.0.1:8080/engine-rest/message>
}
msg_deliver ae0c175e-e4cd-11ed-aa93-7af01d957384 Msg-Node2-1