[jboss-user] [JBoss jBPM] - Re: n-of-m join with jPDL
leobaz2
do-not-reply at jboss.com
Fri Jan 12 15:47:01 EST 2007
Here is a join with beanshell that I just created and it looks like it worked. Please let me know if you see any problems with this script.
count = 0;
if(executionContext.getContextInstance().hasVariable("count", token))
{
count = executionContext.getContextInstance().getVariable("count", token);
}
count = count + 1;
if(count == 2)
{
executionContext.leaveNode();
}
else if(count > 2)
{
token.end();
}
executionContext.getContextInstance().setVariable("count",count,token);
Regards,
Barry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001103#4001103
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001103
More information about the jboss-user
mailing list