forget my question, I have found a solution. in a script task, prior to the gateway (for example in "Check Client"), I put:
toto = true;
kcontext.setVariable("toto", toto);
and now it works. that means the variable "toto" exists but is not usable as long as it is not in the kcontext? well...