liyuan преди 2 години
родител
ревизия
723a76dc68
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      ibps-bpmn-root/modules/bpmn-biz/src/main/java/com/lc/ibps/bpmn/listener/TaskCreateEventListener.java

+ 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();