[jboss-user] [jBPM] - Re: getProcess in ProcessInstanceImpl throws a NullPointerException

Sandra Renaud do-not-reply at jboss.com
Fri Apr 12 03:07:40 EDT 2013


Sandra Renaud [https://community.jboss.org/people/joploya] created the discussion

"Re: getProcess in ProcessInstanceImpl throws a NullPointerException"

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

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

Thank you for the link. Indeed, when I don't use persistence I just used the workflowProcessInstance and it works great. And the NullPointerException apear after changing to persistent session.

But, I already try the command base approach and in my case it doesn't change anything.  

My conclusion that seams to work for now is :
WorkflowProcessInstance wpi = (WorkflowProcessInstance)kSession.getProcessInstance(processInstanceId);
 wpi.getVariable(key);

to access variables even if I use persistent session.

and define output parameters mapped to process variables directly inside the process and pass a map of results to the complete task method to dynamically change process variables.
--------------------------------------------------------------

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

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/20130412/ff06311f/attachment.html 


More information about the jboss-user mailing list