|
@@ -195,10 +195,10 @@ public class GlobalActivityEventListener extends AbstractFlowableEngineEventList
|
|
|
String instanceId = entity.getProcessInstanceId();
|
|
|
|
|
|
// 获取表单标题(实例名称)
|
|
|
- ProcessInstance processInstance = runtimeService.createProcessInstanceQuery()
|
|
|
- .processInstanceId(instanceId)
|
|
|
- .singleResult();
|
|
|
- String formTitle = processInstance.getName();
|
|
|
+ // ProcessInstance processInstance = runtimeService.createProcessInstanceQuery()
|
|
|
+ // .processInstanceId(instanceId)
|
|
|
+ // .singleResult();
|
|
|
+ // String formTitle = processInstance.getName();
|
|
|
|
|
|
// 获取模版名称
|
|
|
FormInfo form = flowInstanceService.getForm(instanceId);
|
|
@@ -218,7 +218,7 @@ public class GlobalActivityEventListener extends AbstractFlowableEngineEventList
|
|
|
notify.setSubject("申请已通过");
|
|
|
// notify.setContent(String.format("您申请的流程《%s》已通过", entity.getName()));
|
|
|
notify.setSubject("申请已通过" + "-" + fromName);
|
|
|
- notify.setContent(formTitle + "-" + "已完结");
|
|
|
+ notify.setContent(fromName + "-" + "已完结");
|
|
|
notify.setSender(entity.getStartUserId());
|
|
|
notify.setType(NotifyEnum.SYSTEM);
|
|
|
notify.setReceiver(entity.getStartUserId());
|
|
@@ -226,7 +226,7 @@ public class GlobalActivityEventListener extends AbstractFlowableEngineEventList
|
|
|
notify.setUrl("/flow/instance");
|
|
|
notifyService.notify(notify);
|
|
|
|
|
|
- log.info("实体开始userId{}", (entity.getStartUserId()));
|
|
|
+ log.info("实例开始userId{}", (entity.getStartUserId()));
|
|
|
}
|
|
|
});
|
|
|
}
|