]
Alejandro Guizar resolved JBPM-2844.
------------------------------------
Resolution: Done
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)
Components: Runtime Engine
Reporter: Telmo Simoes
Assignee: Alejandro Guizar
Priority: Minor
Fix For: jBPM 4.4
Original Estimate: 0 minutes
Remaining Estimate: 0 minutes
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 chosen.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: