This content has been marked as final.
Show 2 replies
-
1. Re: How to setVariable after JPAKnowledgeService.loadStatefulKnowledgeSession
qintao1203 Nov 17, 2011 4:34 AM (in response to qintao1203)sad!
-
2. Re: How to setVariable after JPAKnowledgeService.loadStatefulKnowledgeSession
qintao1203 Nov 21, 2011 1:04 AM (in response to qintao1203)1 of 1 people found this helpfulsolve 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);
}