exception :
"org.mozilla.javascript.EvaluatorException: unterminated string literal"
Exception snapshot:
[Jul 30 2013 - 18:17:52.107(022)] ERROR: SYSTEM: TID=28819895:
executeJavaMethod: Failed to execute JavaAction 'Send E-mail for Maintenance
Renewal Request to Customer' in activity '7687' of process instance 7685: The
cause is 'java.lang.reflect.InvocationTargetException' {Could not send email.
{Could not evaluate the 'JS for Email' script. {Could not evaluate the 'JS for
Email' script. {org.mozilla.javascript.EvaluatorException: unterminated string
literal}} {Could not evaluate the 'JS for Email' script.
{org.mozilla.javascript.EvaluatorException: unterminated string literal}}}}
This error occurs when we
edit the XPDL email body in console and explicitly add \r\n or press Enter in
the body i.e. press return key and save it and create a pi of this PD.
So if we are editing email body in console and want to add a new line then we
have to use <BR> in console and
in studio to prevent unterminated
string literal error message.
Further you can also validate this email message body in studio which will show
error pop message "org.mozilla.javascript.EvaluatorException: unterminated
string literal" if the email message contains new line character which is not
.
So, please confirm your all email message bodies from your problematic PD in
studio for their expressions.