[jboss-user] [jBPM] - Re: Sharing variables across jbpm processes

Mauricio Salatino do-not-reply at jboss.com
Fri May 25 09:00:52 EDT 2012


Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: Sharing variables across jbpm processes"

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

--------------------------------------------------------------
Hi Richard? Where are you trying to do:
kSession.getGlobal.set("statusPollInterval", "2s")
kRuntime.setGlobal.set("statusPollInterval", "2s")

That syntax is not even Java  :) 

if you have access to the Knowledge Session you just do: ksession.setGlobal("statusPollInterval", "2s");

If you don't have access, for example inside a process itself, you can use the kcontext object to access the knowledge runtime 
kcontext.getKnowledgeRuntime().setGlobal("statusPollInterval", "2s");

That should work inside the processes and the rules. 

Cheers
--------------------------------------------------------------

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

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/20120525/e0e4a575/attachment.html 


More information about the jboss-user mailing list