AnsweredAssumed Answered

Cannot resolve identifier 'task' in service task expression

Question asked by andrew987654321 on Jun 20, 2014
Latest reply on Jun 23, 2014 by martin.grofcik
I have a service task that uses an expression to call a spring method.
It works fine when I use   #{activitiService.sendEmail(execution)}
but fails when I use    #{activitiService.sendEmail(task)}

I want to store an email template in a variable on the task definition, and fill in the template with process values in the sendMail() method.

Why does it work with execution, but not task?
I have tried to write an Execution listener expression on the start event, but that fails with the same error.