fix(87436): 审核没全提交,汇总节点的待办就出来了
This commit is contained in:
+5
-4
@@ -424,12 +424,13 @@ public class MyGlobalEventListener implements ActivitiEventListener {
|
|||||||
String parentTaskId = (String) execution.getVariable(ActivitiCommon.PARENT_TASK_ID);
|
String parentTaskId = (String) execution.getVariable(ActivitiCommon.PARENT_TASK_ID);
|
||||||
if (StringUtils.isNotBlank(parentTaskId)) {
|
if (StringUtils.isNotBlank(parentTaskId)) {
|
||||||
int i = processAllService.countByParentTaskId(parentTaskId);
|
int i = processAllService.countByParentTaskId(parentTaskId);
|
||||||
if (StandardInterpretCommon.KEY_1.equals(processDefinitionId.split(":")[0]) ||
|
String processDefinition = processDefinitionId.split(":")[0];
|
||||||
StandardInterpretCommon.KEY_2.equals(processDefinitionId.split(":")[0]) ||
|
if (StandardInterpretCommon.KEY_1.equals(processDefinition) ||
|
||||||
StandardInterpretCommon.KEY_3.equals(processDefinitionId.split(":")[0])) {
|
StandardInterpretCommon.KEY_2.equals(processDefinition) ||
|
||||||
|
StandardInterpretCommon.KEY_3.equals(processDefinition)) {
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
TaskService taskService = SpringContextUtil.getBean(TaskService.class);
|
TaskService taskService = SpringContextUtil.getBean(TaskService.class);
|
||||||
if (StandardInterpretCommon.KEY_1.equals(processDefinitionId)) {
|
if (StandardInterpretCommon.KEY_1.equals(processDefinition)) {
|
||||||
boolean b = isChildrenNodeAllComplete(processInstanceId, parentTaskId);
|
boolean b = isChildrenNodeAllComplete(processInstanceId, parentTaskId);
|
||||||
if (b) {
|
if (b) {
|
||||||
taskService.complete(parentTaskId);
|
taskService.complete(parentTaskId);
|
||||||
|
|||||||
Reference in New Issue
Block a user