Jack Q tao [http://community.jboss.org/people/qintao1203] created the discussion

"Re: How to setVariable after JPAKnowledgeService.loadStatefulKnowledgeSession"

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

--------------------------------------------------------------
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
[http://community.jboss.org/message/637411#637411]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to