You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
1、或签配置方式:
回路特性:并行多重事件
元素变量: 固定节点ID_assignee, 意义不大, 代码里强设了
循环基数: 固定1
完成条件配置为:${nrOfCompletedInstances >= 1}。
节点XML 示例:
< userTask id = "task-01" name = "并行会签" >
< multiInstanceLoopCharacteristics flowable:collection = "${coll_userList}" flowable:elementVariable = "user" >
< loopCardinality xsi:type = "tFormalExpression" > ${coll_userList.size()}</ loopCardinality >
< completionCondition xsi:type = "tFormalExpression" > ${nrOfCompletedInstances/nrOfInstances == 1}</ completionCondition >
</ multiInstanceLoopCharacteristics >
</ userTask >
配置截图示例:
![img_3.png ](img_3.png )
2、并签配置方式( 没有业务, 需后续验证) :
回路特性:并行多重事件
元素变量: 固定节点ID_assignee, 意义不大, 代码里强设了
循环基数:固定为${coll_userList.size()}
完成条件配置为:${nrOfCompletedInstances/nrOfInstances == 1}。
`nrOfCompletedInstances` 和 `nrOfInstances` 是并行多实例活动( ParallelMultiInstanceActivity) 中的两个内置变量。
- `nrOfCompletedInstances` :表示已完成的实例数量。在并行多实例活动中,每当一个实例完成时,`nrOfCompletedInstances` 的值就会增加。
- `nrOfInstances` :表示总实例数量。在并行多实例活动中,`nrOfInstances` 的值等于要创建的实例总数。
节点XML示例:
< userTask id = "task-01" name = "并行会签" >
< multiInstanceLoopCharacteristics flowable:collection = "${coll_userList}" flowable:elementVariable = "user" >
< loopCardinality xsi:type = "tFormalExpression" > ${coll_userList.size()}</ loopCardinality >
< completionCondition xsi:type = "tFormalExpression" > ${nrOfCompletedInstances/nrOfInstances == 1}</ completionCondition >
</ multiInstanceLoopCharacteristics >
</ userTask >