[
https://jira.jboss.org/browse/JBPM-2891?page=com.atlassian.jira.plugin.sy...
]
Huisheng Xu commented on JBPM-2891:
-----------------------------------
As expr is a common attribute of ObjectDescriptor, isObjectDescriptor() should return
true, if there is expr attribute on an element.
The template attribute isn't a common attribute for object descriptor element, As I
knew, the template attribute is an attribute of mail complex type.
Custom mail producer can not be a spring bean
---------------------------------------------
Key: JBPM-2891
URL:
https://jira.jboss.org/browse/JBPM-2891
Project: jBPM
Issue Type: Patch
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.3
Reporter: Marta Psenkova
Fix For: jBPM 4.4
Attachments: custom_mail_producer_expr.pvm.r6398.patch, JBPM-2891.patch
It is not possible to put spring beans or expressions to custom mail producer, e.g.:
<notification expr="#{jbpmCustomMailProducer}">
<field name="templateName"><string
value="planning-approval-start-notifcation"/></field>
</notification>
this won't work, because only factory or class is allowed, but not expr.
The solution here is to allow it :)
See patch attached.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira