[
https://jira.jboss.org/browse/JBPM-2891?page=com.atlassian.jira.plugin.sy...
]
Huisheng Xu commented on JBPM-2891:
-----------------------------------
The problem is isObjectDescriptor() of ObjectBinding didn't allow using expr for
notification, so it won't evaluate expr for CustomMailProducer, Even if we didn't
use spring bean, we couldn't use custom mailProducer by expr.
I attach the patch and testcase.
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