-
1. Re: Logging mails in jBPM 4.0.CR1
aguizar Jun 18, 2009 8:09 PM (in response to nilspreusker)Nils, why don't you use a mock SMTP server such as Wiser? That is what we use to test the email module.
-
2. Re: Logging mails in jBPM 4.0.CR1
aguizar Jun 18, 2009 8:10 PM (in response to nilspreusker)Point taken, the custom MailProducer documentation and the customization mechanism itself need some more work.
-
3. Re: Logging mails in jBPM 4.0.CR1
kukeltje Jun 19, 2009 5:46 AM (in response to nilspreusker)Alex, did you file a Jira ;-)
-
4. Re: Logging mails in jBPM 4.0.CR1
nilspreusker Jun 25, 2009 9:30 AM (in response to nilspreusker)Hi Alex,
thanks for the hint with Wiser, that's exactly what I ended up doing after looking at the jBPM test cases:)
Cheers, Nils -
5. Re: Logging mails in jBPM 4.0.CR1
nilspreusker Oct 29, 2009 8:38 AM (in response to nilspreusker)Hi again,
I knew I would come across this again:) This time I'd like to implement a custom mail producer that uses a java class (in this particular case a spring bean) to generate attachments. The way I imagine it to work is that a custom producer first checks for the presence of a certain name (or a custom attachment type in addition to the existing ones; url, resource and file). If the name or type is present, the producer generates the custom attachment and then calls the default mail producer's addAttachment method (super.addAttachment) to take care of the rest. I think this is a pretty generic requirement, so I would like to contribute it as an example to the Developers Guide (if I actually succeed in implementing it).
What I know up to now is that I can extend org.jbpm.pvm.internal.email.impl.MailProducerImpl, as stated in the dev guide. I'm still not sure how I actually tell jBPM to use the custom producer. Maybe someone can point me at how to get the configuration right. The other challenge is to parse the inline mail template that defines the attachments, but looking at the source code of MailProducerImpl, extracting the relevant logic from there shouldn't be a big problem.
Thanks in advanced for your help!
Cheers, Nils -
6. Re: Logging mails in jBPM 4.0.CR1
khoying Mar 24, 2010 10:04 AM (in response to nilspreusker)Did you ever figure out how to configure a custom MailProducer? I have a need to do this, as well.
Thank you!