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

Sandra Renaud do-not-reply at jboss.com
Fri Feb 15 09:09:19 EST 2013


Sandra Renaud [https://community.jboss.org/people/joploya] 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/797918#797918

--------------------------------------------------------------
Hello,

To access your variables you should use :
> /**
>            * Return the WorkflowProcessInstance associated to a Task
>            * This instance allow to access the map of variables
>            * @return WorkflowProcessInstance managed
>            */
>           public WorkflowProcessInstance getWorkflowProcessInstance(long processInstanceId){
>                     return (WorkflowProcessInstance)kSession.getProcessInstance(processInstanceId);
>           }
kSession is a StatefullKnowledgeSession

then you access your process variable like this : getWorkflowProcessInstance(task.getProcessInstanceId()).getVariable("formObject");

Regards,
--------------------------------------------------------------

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

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/20130215/073b4755/attachment.html 


More information about the jboss-user mailing list