Using Email Templates addon in BPROC service task

Hello,

I need help with sending an email in bproc service task, using the cuba Email Templates addon.
Lets talk about example:

  • string process variables: caseNumber, firstName, lastName
  • template parameter aliases: caseNumber, firstName, lastName

What to do now? A Spring bean type call? Which bean to use, and which method, and how to correctly specify the method parameters?
Should I maybe use something else?

Thanks.

Hi,
you may create your own Spring bean with any number of required arguments (caseNumber, firstName, etc.) and configure this bean method invocation from the process. Inside the bean method you will use email templates - generate and send the email.

As an alternative you may use the JavaDelgate from the service task.

Thank you.