Custom FunctionMapper implementation is not picked up in org.jbpm.mail.Mail
---------------------------------------------------------------------------
Key: JBPM-1429
URL:
https://jira.jboss.org/jira/browse/JBPM-1429
Project: JBoss jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: jPDL 3.2.3
Reporter: Martin Putz
Assignee: Alejandro Guizar
Fix For: JBossBPM-3.3.0
I have created a custom implementation of the FunctionMapper, which provides a custom
function I want to use in an email template.
Now, after I add the reference to this FunctionMapper to jbpm.cfg.xml:
<bean name="jbpm.function.mapper"
class="org.jbpm.jpdl.el.impl.DateFormatFunctionMapper"
singleton="true" />
it will get picked up, but unfortunately, the default Mail class does not use it because
it always sets the FunctionMapper to null in the evaluate method (last parameter):
String evaluate(String expression) {
//...
return (String) JbpmExpressionEvaluator.evaluate(expression, executionContext,
variableResolver, null);
this should be :
return (String) JbpmExpressionEvaluator.evaluate(expression, executionContext,
variableResolver, JbpmExpressionEvaluator.getUsedFunctionMapper());
--
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