Przeglądaj źródła

更新任务的subject

liyuan 2 lat temu
rodzic
commit
723a76dc68

+ 2 - 0
ibps-bpmn-root/modules/bpmn-biz/src/main/java/com/lc/ibps/bpmn/listener/TaskCreateEventListener.java

@@ -79,6 +79,8 @@ public class TaskCreateEventListener implements ApplicationListener<TaskCreateEv
 		String subject = delegateTask.hasVariable(BpmConstants.BPM_TASK + BpmConstants.SUBJECT)
 				? delegateTask.getVariableString(BpmConstants.BPM_TASK + BpmConstants.SUBJECT)
 				: delegateTask.getVariableString(BpmConstants.SUBJECT);
+		delegateTask.setVariable(BpmConstants.BPM_TASK + BpmConstants.SUBJECT,subject);
+
 		String instId = delegateTask.getVariableString(BpmConstants.PROCESS_INST_ID);
 		String userId = delegateTask.getVariableString(BpmConstants.CUR_USER);
 		String nodeId = delegateTask.getTaskDefinitionKey();