I have a scenerio whereby a message queue consumer receives a message and then the relevant jbpm process instance is pulled out via
context.getProcessInstance(processInstanceId) It then adds variables to the process via contextInstance.setVariable(..) and then saves the process instance. Concurrenly I have another process that is responsible for actioning the workflow and retrieving the current user tasks with a call such as context.getTaskMgmtSession().findTaskInstancesByProcessInstance(processInstance); The problem I am having is that when I am pulling the user tasks back I am not getting the variables set in the task form by the message queue consumer process. I have wrote my own TaskControlHandler to do the copying of the process variables to the task form variables. This doesn't seem to be getting called when I am doing the call to findTaskInstancesByProcessInstance(). I remember reading in the docs that the flushing from process to form and vice versa only happens on creation/ending of task. Therefore my question is how do I force the propogation of vars from the process to the task form when I do the findTaskInstancesByProcessInstance() call? Any thoughts? cheers! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149442#4149442 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149442 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user