JBoss Community

jbpm5 pesist setGlobal getGlobal problem

created by okey9 zeng in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community