Hi,
you can get the new value by : ret = instance.getVariable(variableName);
you just need to be sure that your java code is executed after your ret variable was updated (after the exeution of your script).
HTH.
Reply to this message by going to Community
Start a new discussion in jBPM at Community