AnsweredAssumed Answered

Email Task Attachments

Question asked by conradi on May 8, 2014
Latest reply on Oct 15, 2014 by martin.grofcik
I would like to add attachments to the emails send by activiti (thread and others expressed a similar desire).
I know that I can write my own service task logic but since there exists already a task for writing emails, I think one should enhance that accordingly.

I propose to add one new property to the mail task configuration: attachments

This can either be a java.util.File, a String, or a javax.activation.DataSource, or an array of one of these objects.
A file is just attached as is, with the name of the file as name of the attachment, and a String is interpreted as path to a file.
In case of a DataSource, the name attribute of the data source is used as name of the attachement.

I am of course open for different suggestions for this interface.

I have prepared a patch for this functionality including tests and user manual (see above).
Should I add this patch to the thread, or should I open a jira issue for it?

Best regards, Heinz-Dieter