|
@@ -142,14 +142,12 @@ public class GlobalActivityEventListener extends AbstractFlowableEngineEventList
|
|
|
String instanceId = entity.getProcessInstanceId();
|
|
|
FormInfo form = flowInstanceService.getForm(instanceId);
|
|
|
String fromName = form.getFlowDefine().getName();
|
|
|
- notify.setSubject("新的审批任务" + "-" + fromName);
|
|
|
+ String name = form.getFormName();
|
|
|
|
|
|
- ProcessInstance processInstance = runtimeService.createProcessInstanceQuery()
|
|
|
- .processInstanceId(instanceId)
|
|
|
- .singleResult();
|
|
|
+ notify.setSubject("新的审批任务" + "-" + fromName);
|
|
|
|
|
|
// 审批节点
|
|
|
- notify.setContent(processInstance.getName() + "-" + entity.getName());
|
|
|
+ notify.setContent(name + "-" + entity.getName());
|
|
|
notify.setSender(SecurityContextUtil.getUserId());
|
|
|
notify.setType(NotifyEnum.TODO);
|
|
|
// 接收者 entity.getAssignee() 下一节点的审批人
|