cancel
Showing results for 
Search instead for 
Did you mean: 

Email Task Attachments

conradi
Champ in-the-making
Champ in-the-making
I would like to add attachments to the emails send by activiti (thread http://forums.activiti.org/content/send-email-attachment 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
4 REPLIES 4

conradi
Champ in-the-making
Champ in-the-making
I have opened a jira issue for this: (http://jira.codehaus.org/browse/ACT-2008)

trademak
Star Contributor
Star Contributor
Sorry for the late reply, the JIRA issue is the right way 😉
We'll have a look at the patch and if there are no concerns it will be merged with Activiti trunk.

Thanks,

skalex
Champ in-the-making
Champ in-the-making
Hi there, nice stuff, any updates on this yet?

I'm about to implement this feature as I need attachments for email tasks, what would you recommend me to do taking into account that this is 'perhaps' going to be merged officially ?

Also, I would need some help to apply this patch, as i haven't done it before (kind of newbie, but impossible is nothing, huh?). Tell me if I miss anything:

If i'm right, I have to apply this patch to the activiti-engine sources and use my custom (patched) jar instead of the official maven release.

Digging around I found another solution to this problem (http://forums.activiti.org/comment/25943#comment-25943) with less modifications but seems to do the same (overwrite emailtaskbehavior)

What should I do to make it less painful on later updates?

Thanks in advance for comments and suggestions Smiley Happy





martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

the easiest way to get your proposal into the activiti source is to clone project from GitHub and create pull request.

Regards
Martin
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.