parent
5e277e020f
commit
c68ab33dfd
|
@ -32,7 +32,7 @@ import static org.flowable.bpmn.constants.BpmnXMLConstants.FLOWABLE_EXTENSIONS_P
|
|||
|
||||
/**
|
||||
* BPMN Model 操作工具类。目前分成三部分:
|
||||
* <p>
|
||||
*
|
||||
* 1. BPMN 修改 + 解析元素相关的方法
|
||||
* 2. BPMN 简单查找相关的方法
|
||||
* 3. BPMN 复杂遍历相关的方法
|
||||
|
@ -150,9 +150,9 @@ public class BpmnModelUtils {
|
|||
/**
|
||||
* 解析审批类型
|
||||
*
|
||||
* @see BpmUserTaskApproveTypeEnum
|
||||
* @param userTask 任务节点
|
||||
* @return 审批类型
|
||||
* @see BpmUserTaskApproveTypeEnum
|
||||
*/
|
||||
public static Integer parseApproveType(FlowElement userTask) {
|
||||
return NumberUtils.parseInt(parseExtensionElement(userTask, BpmnModelConstants.USER_TASK_APPROVE_TYPE));
|
||||
|
@ -196,9 +196,9 @@ public class BpmnModelUtils {
|
|||
/**
|
||||
* 给节点添加用户任务的审批人与发起人相同时,处理类型枚举
|
||||
*
|
||||
* @see BpmUserTaskAssignStartUserHandlerTypeEnum
|
||||
* @param assignStartUserHandlerType 发起人处理类型
|
||||
* @param userTask 任务节点
|
||||
* @see BpmUserTaskAssignStartUserHandlerTypeEnum
|
||||
*/
|
||||
public static void addAssignStartUserHandlerType(Integer assignStartUserHandlerType, UserTask userTask) {
|
||||
if (assignStartUserHandlerType == null) {
|
||||
|
|
|
@ -697,9 +697,8 @@ public class BpmProcessInstanceServiceImpl implements BpmProcessInstanceService
|
|||
if (CollUtil.isEmpty(tasks)) {
|
||||
return;
|
||||
}
|
||||
// 2.流程发起时要先获取当前流程的预测走向节点,发起是
|
||||
|
||||
// 2. 校验发起人自选审批人的审批人和抄送人是否都配置了
|
||||
// 2. 流程发起时要先获取当前流程的预测走向节点,发起时只校验预测的节点发起人自选审批人的审批人和抄送人是否都配置了
|
||||
tasks.stream().filter(task -> nodeIds == null || nodeIds.contains(task.getId())).forEach(task -> {
|
||||
List<Long> assignees = startUserSelectAssignees != null ? startUserSelectAssignees.get(task.getId()) : null;
|
||||
if (CollUtil.isEmpty(assignees)) {
|
||||
|
|
Loading…
Reference in New Issue