[jboss-user] [jBPM] - Re: How to setVariable after JPAKnowledgeService.loadStatefulKnowledgeSession

Jack Q tao do-not-reply at jboss.com
Mon Nov 21 01:04:18 EST 2011


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111121/9394606c/attachment-0001.html 


More information about the jboss-user mailing list