|
@@ -70,6 +70,7 @@ public class GlobalActivityEventListener extends AbstractFlowableEngineEventList
|
|
FlowElement currentFlowElement = execution.getCurrentFlowElement();
|
|
FlowElement currentFlowElement = execution.getCurrentFlowElement();
|
|
String nobody = ProcessElementUtil.getExtensionElementValue(currentFlowElement, "nobody");
|
|
String nobody = ProcessElementUtil.getExtensionElementValue(currentFlowElement, "nobody");
|
|
String assigneeType = ProcessElementUtil.getExtensionElementValue(currentFlowElement, "assigneeType");
|
|
String assigneeType = ProcessElementUtil.getExtensionElementValue(currentFlowElement, "assigneeType");
|
|
|
|
+ String same = ProcessElementUtil.getExtensionElementValue(currentFlowElement, "same");
|
|
|
|
|
|
if (StringUtils.isNotBlank(assigneeType)) {
|
|
if (StringUtils.isNotBlank(assigneeType)) {
|
|
if (assigneeType.equals(AssigneeTypeEnum.AUTO_PASS.getType())) {
|
|
if (assigneeType.equals(AssigneeTypeEnum.AUTO_PASS.getType())) {
|
|
@@ -97,6 +98,15 @@ public class GlobalActivityEventListener extends AbstractFlowableEngineEventList
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // 审批人与发起人是同一人时
|
|
|
|
+ String initiator = execution.getVariable("initiator", String.class);
|
|
|
|
+ if (entity.getAssignee().equals(initiator)) {
|
|
|
|
+ if ("skip".equals(same)) {
|
|
|
|
+ flowTaskService.autoComplete(entity.getId(), " 审批人是发起人");
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
// 审批人重复处理
|
|
// 审批人重复处理
|
|
String duplicate = execution.getVariable("_DUPLICATE_APPROVAL", String.class);
|
|
String duplicate = execution.getVariable("_DUPLICATE_APPROVAL", String.class);
|
|
if (StringUtils.isNotBlank(duplicate)) {
|
|
if (StringUtils.isNotBlank(duplicate)) {
|