[jboss-user] [jBPM] - Re: How to set a process variable from java code ?

Sandra Renaud do-not-reply at jboss.com
Fri Mar 22 08:27:13 EDT 2013

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

"Re: How to set a process variable from java code ?"

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


You need to retrieve the WorkflowProcessInstance : (WorkflowProcessInstance)kSession.getProcessInstance(processInstanceId);
Then :  workflowProcessInstance.setVariable("formValid", formValid);

But after server restart workflowProcessInstance can be null and I don't find how to solve this problem.

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130322/72a7c197/attachment.html 

More information about the jboss-user mailing list