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 !