0 Replies Latest reply on Jul 19, 2011 11:29 PM by okey9 zeng

    jbpm5 pesist setGlobal getGlobal problem

    okey9 zeng Newbie

      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 !