[jboss-user] [jBPM] - Re: JBPM 5.4.0-Final: Human Task variables mapping persistence problem.

maq99 do-not-reply at jboss.com
Mon Feb 18 03:51:34 EST 2013


maq99 [https://community.jboss.org/people/maq99] created the discussion

"Re: JBPM 5.4.0-Final: Human Task variables mapping persistence problem."

To view the discussion, visit: https://community.jboss.org/message/798123#798123

--------------------------------------------------------------
Sorry but You have not seen the attachment code.. the problem exist because at HT2 i have null variable aldow it have been set at HT1.. full code of getProcessParameter is: 
 public Object getProcessParameter(StatefulKnowledgeSession ksession,                Long processInstanceId, Long taskId, String key) {                      String paramInfo = "getProcessParameter sessionid: " + ksession.getId() + ","                     + ksession.hashCode() + " processInstanceId: "                     + processInstanceId + " taskId: "+taskId;           WorkflowProcessInstance workflowProcessInstance = (WorkflowProcessInstance) ksession                     .getProcessInstance(processInstanceId);           Object retObj = null;                      if (workflowProcessInstance == null                     || workflowProcessInstance.getVariable(key) == null) {                                 TaskService taskService = getLocalTaskService();                Task task = taskService.getTask(taskId);                TaskData taskData = task.getTaskData();                Long documentContentId = taskData.getDocumentContentId();                Content content = taskService.getContent(documentContentId);                Map variableMap = ((Map) ContentMarshallerHelper                          .unmarshall(content.getContent(), null));                retObj = variableMap.get(key);                 paramInfo=paramInfo+" From documentContent ";                           } else {                paramInfo=paramInfo+" From workflowProcessInstance ";                retObj = workflowProcessInstance.getVariable(key);           }                      paramInfo=paramInfo+" <" + key + ","                     + retObj + ">";           log.info(paramInfo);           return retObj;      }
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/798123#798123]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130218/339979be/attachment.html 


More information about the jboss-user mailing list