0
votes

I'm trying to set a process variable in Task Listener of a human-task using Groovy script during 'create' as event type in Camunda BPMN work-flow.

execution.setVariable('newUserType',"RMAOFF1");

But it is giving me error saying "The task does not exist or the corresponding process instance could not be resumed successfully."

Any help most appreciated.

1

1 Answers

0
votes

The signature of a TaskListener is void notify(DelegateTask task). I guess you are accidentally using an ExceutionListener, but that does not have a "create" event.