Custom Mail Producer does not set the MailTemplate
--------------------------------------------------
Key: JBPM-2844
URL:
https://jira.jboss.org/jira/browse/JBPM-2844
Project: jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Telmo Simoes
Priority: Critical
Fix For: jBPM 4.x
When using a custom email producer, the JpdlParser doesn't seem to set the
MailTemplate. The following snippet was taken from the projects SVN
(
http://anonsvn.jboss.org/repos/jbpm/jbpm4/trunk/modules/jpdl/src/main/jav...)
---------------------------------------------------------------------------------------------------------------------------------------
public MailProducer parseMailProducer(Element element, Parse parse, String
defaultTemplateName) {
// check whether the element is a generic object descriptor
if (ObjectBinding.isObjectDescriptor(element)) {
// TODO test custom mail producer
ObjectDescriptor objectDescriptor = parseObjectDescriptor(element, parse);
return (MailProducer) WireContext.create(objectDescriptor);
}
// parse the default producer
MailProducerImpl mailProducer = new MailProducerImpl();
mailProducer.setTemplate(parseMailTemplate(element, parse, defaultTemplateName));
return mailProducer;
}
---------------------------------------------------------------------------------------------------------------------------------------
I believe that when the condition "ObjectBinding.isObjectDescriptor(element)" is
verified, the MailTemplate should be set before returning the MailProducer. This is
performed when the default email producer is choosen.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira