[jboss-user] [JBoss jBPM] - Re: variable scope from a script

tbeernot do-not-reply at jboss.com
Mon Nov 24 10:47:14 EST 2008


"kukeltje" wrote : btw, the 3.2 docs online are in more ways different from the 3.2.x docs. The 3.2.3 docs are also online but the links to it not always correct

Ok. In this case both the docs provided with the distribution as the online ones are in agreement. Plus, the method actually exists and also is executed without any exceptions thrown. So it seems the method really exists.

Although it does seem the code is somewhat complex without a good reason:

token.getProcessInstance().getContextInstance().setVariable("var","valueOfFork", token);

IMHO should be written as:

token.setVariable("var","valueOfFork");

But to reverse the question: how do people normally assign a value to a variable in the token scope form within a script? I assume more people do this.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191795#4191795

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191795



More information about the jboss-user mailing list