JBoss Community

Re: How to setVariable after JPAKnowledgeService.loadStatefulKnowledgeSession

created by Jack Q tao in jBPM - View the full discussion

solve it.

 

I set a uuid for every flow !

and cached signers  by uuid .   cache.put(uuid ,List<String> signers);

and cache.get(uuid) by script task.

 

if(null == p || p.size()==0){

                     isSign = false;

                     signers = null;

                     kcontext.setVariable("isSign",false);

                    kcontext.setVariable("signers",null);

           }else{

                               isSign = true;

                               signers = p;

                               kcontext.setVariable("isSign",true);

                              kcontext.setVariable("signers",p);

                              JbpmCache.remove(uuid);

           }

B-)

Reply to this message by going to Community

Start a new discussion in jBPM at Community