This commit is contained in:
parent
8371b085f4
commit
fc715c9cd4
|
@ -166,6 +166,11 @@ public class DemandDataListener implements TaskListener, ExecutionListener, Acti
|
||||||
&& StringUtils.isNotEmpty(demandDataDTO.getApplyUserId())
|
&& StringUtils.isNotEmpty(demandDataDTO.getApplyUserId())
|
||||||
&& demandDataDTO.getApplyUserId().equals(assignee)) {
|
&& demandDataDTO.getApplyUserId().equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
|
try {
|
||||||
|
Thread.sleep(100l);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -157,6 +157,11 @@ public class CommentListener implements TaskListener, ExecutionListener, Activit
|
||||||
&& StringUtils.isNotEmpty(tDemandCommentDTO.getCreator().toString())
|
&& StringUtils.isNotEmpty(tDemandCommentDTO.getCreator().toString())
|
||||||
&& tDemandCommentDTO.getCreator().toString().equals(assignee)) {
|
&& tDemandCommentDTO.getCreator().toString().equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
|
try {
|
||||||
|
Thread.sleep(100l);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -228,6 +228,11 @@ public class CorrectionListener implements TaskListener, ExecutionListener, Acti
|
||||||
&& StringUtils.isNotEmpty(abilityApplicationDTO.getUserId())
|
&& StringUtils.isNotEmpty(abilityApplicationDTO.getUserId())
|
||||||
&& abilityApplicationDTO.getUserId().equals(assignee)) {
|
&& abilityApplicationDTO.getUserId().equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
|
try {
|
||||||
|
Thread.sleep(100l);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,6 +140,11 @@ public class DataCenterListener implements TaskListener, ExecutionListener, Acti
|
||||||
&& StringUtils.isNotEmpty(abilityApplicationDTO.getUserId())
|
&& StringUtils.isNotEmpty(abilityApplicationDTO.getUserId())
|
||||||
&& abilityApplicationDTO.getUserId().equals(assignee)) {
|
&& abilityApplicationDTO.getUserId().equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
|
try {
|
||||||
|
Thread.sleep(100l);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -208,6 +208,11 @@ public class CorrectionListenerV2 implements TaskListener, ExecutionListener, Ac
|
||||||
&& StringUtils.isNotEmpty(delegateTask.getVariable("creator", String.class))
|
&& StringUtils.isNotEmpty(delegateTask.getVariable("creator", String.class))
|
||||||
&& delegateTask.getVariable("creator", String.class).equals(assignee)) {
|
&& delegateTask.getVariable("creator", String.class).equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
|
try {
|
||||||
|
Thread.sleep(100l);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,6 +110,11 @@ public class DataCenterListenerV2 implements TaskListener, ExecutionListener, Ac
|
||||||
&& StringUtils.isNotEmpty(delegateTask.getVariable("creator", String.class))
|
&& StringUtils.isNotEmpty(delegateTask.getVariable("creator", String.class))
|
||||||
&& delegateTask.getVariable("creator", String.class).equals(assignee)) {
|
&& delegateTask.getVariable("creator", String.class).equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
|
try {
|
||||||
|
Thread.sleep(100l);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,6 +149,11 @@ public class ResourceUndercarriageListener implements TaskListener, ExecutionLis
|
||||||
&& StringUtils.isNotEmpty(re.getCreator().toString())
|
&& StringUtils.isNotEmpty(re.getCreator().toString())
|
||||||
&& re.getCreator().toString().equals(assignee)) {
|
&& re.getCreator().toString().equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
|
try {
|
||||||
|
Thread.sleep(100l);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -227,6 +227,11 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
|
||||||
&& StringUtils.isNotEmpty(resourceMountApplyDTO.getUserId())
|
&& StringUtils.isNotEmpty(resourceMountApplyDTO.getUserId())
|
||||||
&& resourceMountApplyDTO.getUserId().equals(assignee)) {
|
&& resourceMountApplyDTO.getUserId().equals(assignee)) {
|
||||||
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
|
||||||
|
try {
|
||||||
|
Thread.sleep(100l);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue