1.中止的或撤销的工作流不生成工单

main
yitonglei 3 years ago
parent 21930ade44
commit 43289cdb45
  1. 3
      lab-plugin/lab-workflow/src/main/java/org/springblade/plugin/listener/ProcessEndListener.java

@ -38,6 +38,9 @@ public class ProcessEndListener implements ExecutionListener {
switch (event) {
case "start":
System.out.println("ProcessEndListener-start event-------------------");
//中止或撤销的工作流不做任何处理了
if(variablesMap.containsKey("wf_process_terminate")) return;
IAutoStartModelService autoStartModelService = (IAutoStartModelService) SpringContextHolder.getBean(AutoStartModelServiceImpl.class);
//判断工作流的的重复模式1
if (Func.isNotEmpty(variablesMap.get("chongfumoshi")) && !StringUtils.equals(RepeatEnum.不重复.getCode(), variablesMap.get("chongfumoshi").toString())) {

Loading…
Cancel
Save