Hello,
You also need to set it back to the process context i.e.
kcontext.setVariable("anzahl",anzahl);
Reply to this message by going to Community
Start a new discussion in jBPM at Community