Hi @rathina_karthik ,
Heads up or maybe better heads down. With Tomcat I am running into the same issue. I don’t know what is causing this.
A work around would be to use a Script Task before the User task to set the variable locally. A co-worker tested it and got the wanted result. Nevertheless this feels not like a good solution. I would considered it more as a work around, if you need something for now.
I hope we will get some feedback on the topic after the holidays. We keep you posted!
Hello. We are also seeing this error with the Tomcat distribution - 7.16.0.
We have a User Task with a Task Listener defined as follows:
- Event Type: complete
- Script Type: inline script
- Script: task.execution.setVariable(“status”, “started”);
We get the following error in the log. Is there any update on resolving this issue?
11-Feb-2022 21:18:25.314 SEVERE [http-nio-8080-exec-20] org.camunda.commons.logging.BaseLogger.logError ENGINE-16004 Exception while closing command context: ENGINE-03051 There was an exception while invoking the TaskListener. Message: 'Unable to evaluate script while executing activity 'e0cb977e_899e_4d80_9a53_69a9dee9aafb_Burn_UserTask_ErrorHandler' in the process definition with id '31cfec40-8abb-11ec-bb98-0242ac170004':org.graalvm.polyglot.PolyglotException: TypeError: Cannot read property 'setVariable' of undefined'