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.
Thanks,
Andrew