[JBoss JIRA] Created: (JBPM-1194) Enable variable reference evaluation in Mail Templates
by Matthias Grossmann (JIRA)
Enable variable reference evaluation in Mail Templates
------------------------------------------------------
Key: JBPM-1194
URL: http://jira.jboss.com/jira/browse/JBPM-1194
Project: JBoss jBPM
Issue Type: Patch
Components: Core Engine
Affects Versions: jBPM jPDL 3.2
Reporter: Matthias Grossmann
Assigned To: Tom Baeyens
Changes in org.jbpm.mail.Mail:
public String getSubject() {
if (subject==null) return null;
Object parsedValue = null;
String ret = subject;
do {
ret = evaluate(ret);
ret = JbpmExpressionEvaluator.translateExpressionToDollars(ret);
parsedValue = new ExpressionEvaluatorImpl().parseExpressionString(ret);
} while (!(parsedValue instanceof String));
return ret;
}
public String getText() {
if (text==null) return null;
Object parsedValue = null;
String ret = text;
do {
ret = evaluate(ret);
ret = JbpmExpressionEvaluator.translateExpressionToDollars(ret);
parsedValue = new ExpressionEvaluatorImpl().parseExpressionString(ret);
} while (!(parsedValue instanceof String));
return ret;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 11 months