[jboss-user] [jBPM] - jbpm5 pesist setGlobal getGlobal problem

okey9 zeng do-not-reply at jboss.com
Tue Jul 19 23:29:26 EDT 2011


okey9 zeng [http://community.jboss.org/people/okey9] created the discussion

"jbpm5 pesist setGlobal getGlobal problem"

To view the discussion, visit: http://community.jboss.org/message/616249#616249

--------------------------------------------------------------
Hi:
    i  have  global value problem...

     i use the method of setGlobal in Persistence ,

     for example: 

1.           ksession = (CommandBasedStatefulKnowledgeSession)JPAKnowledgeService.newStatefulKnowledgeSession(kbase, config, env); 
2.           ksession.setGlobal("testkey","testValue");
3.           ksession.startProcess(processId);
4.           ksession.dispose();


then i use 

 ksession = (CommandBasedStatefulKnowledgeSession)JPAKnowledgeService.loadStatefulKnowledgeSession(ksessionId,kbase, config, env);

get the ksession again,

          then ksession.getGlobal("testkey")   is  null,

why? and  how do use the globalValue  in Persistence..

thanks for u !
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[http://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/20110719/3844bee8/attachment.html 


More information about the jboss-user mailing list