update - 会签结束条件增加判断活动实例数量判断
This commit is contained in:
parent
2c002b682c
commit
698e4d69c1
@ -398,7 +398,7 @@ public class BpmTransformUtil {
|
||||
multiInstanceLoopCharacteristics.setCompletionCondition("${nrOfCompletedInstances > 0}");
|
||||
} else if (BpmFlowMultiMode.AND.getType().equals(mode.getType())) {
|
||||
multiInstanceLoopCharacteristics.setCompletionCondition("${nrOfInstances == " +
|
||||
"nrOfCompletedInstances}");
|
||||
"nrOfCompletedInstances} || ${nrOfActiveInstances<=0}");
|
||||
}
|
||||
}
|
||||
// 设置审批人为空时,允许自动通过
|
||||
|
||||
@ -283,7 +283,7 @@ public class BpmnTaskServiceImpl implements BpmnTaskService {
|
||||
Task task = checkTask(dto.getTenantId(), dto.getUserId(), dto.getTaskId());
|
||||
// 校验流程实例存在
|
||||
HistoricProcessInstance instance = processInstanceService.getProcessInstance(
|
||||
task.getProcessInstanceId(), dto.getTenantId(), true);
|
||||
task.getProcessInstanceId(), dto.getTenantId(), false);
|
||||
if (instance == null) {
|
||||
throw new WorkflowEngineException(PROCESS_INSTANCE_NOT_EXISTS);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user