[jbpm-issues] [JBoss JIRA] Resolved: (JBPM-1429) Custom FunctionMapper implementation is not picked up in org.jbpm.mail.Mail

Alejandro Guizar (JIRA) jira-events at lists.jboss.org
Wed Aug 6 03:08:56 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBPM-1429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Guizar resolved JBPM-1429.
------------------------------------

    Resolution: Done


Applied the proposed fix to SVN trunk.

> 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

        



More information about the jbpm-issues mailing list