[jboss-user] [jBPM] - Re: Need help implementing email attachment capability in JBPM 3

Alejandro Guizar do-not-reply at jboss.com
Thu Sep 9 14:51:19 EDT 2010

Alejandro Guizar [http://community.jboss.org/people/alex.guizar%40jboss.com] created the discussion

"Re: Need help implementing email attachment capability in JBPM 3"

To view the discussion, visit: http://community.jboss.org/message/561170#561170

> Correct me if im wrong, but JBPM 3 doesnt support attachments for the mail-node, right?
Right, it does not  :( 
> Im not able to update to a newer version of JBPM right now so I figured I could look at how its done in JBPM 4 and use that code to extend org.jbpm.mail.Mail (see:  http://docs.jboss.com/jbpm/v3.2/userguide/html_single/#customizingmailsupport http://docs.jboss.com/jbpm/v3.2/userguide/html_single/#customizingmailsupport). But version 3 and 4 differed a lot so I cant really see a direct way of doing this.
> I wonder if any of you have done this before or if you perhaps have any suggestions on how to do this (ie. implement email attachment support for JBPM 3)?
The key aspect to realize is that the Mail class is a plain action handler. Setting the configuration entry jbpm.mail.class.name allows you to point to a subclass with additional fields. Unfortunately there is no way to read custom attributes into the mail delegation other than reading the process definition with a JpdlXmlReader subclass that overrides readMailDelegation(). Real bummer.

I recently implemented  http://https://jira.jboss.org/browse/JBPM-2852 CC support in jBPM3, which suprisingly enough had not been requested earlier. If your attachment requirements are satisfied by what jBPM4 offers it should be relatively straightforward to backport the feature. If you are interested, please create a JIRA issue.

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100909/ca3c04f2/attachment.html 

More information about the jboss-user mailing list