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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to