Yes, you are correct.
According to Unable to use execution.setVariable() in listener inline script - #2 by hassang
You’ll want to use task.execution.setVariable
Yes, you are correct.
According to Unable to use execution.setVariable() in listener inline script - #2 by hassang
You’ll want to use task.execution.setVariable