]
Alejandro Guizar closed JBPM-1429.
----------------------------------
Closing issues that I resolved in already released versions.
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: jBPM 3.2.3
Reporter: Martin Putz
Assignee: Alejandro Guizar
Fix For: jBPM 3.3.0 GA
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: