[
http://jira.jboss.com/jira/browse/JBPM-978?page=all ]
Ronald van Kuijk reopened JBPM-978:
-----------------------------------
We've slightly adapted org.jbpm.mail.Mail.java so it can send html mail as well.
I'm making this configurable now, so you can choose to have the text in the body to be
html for all mail options (node, reminder, action assignment) or never. If you choose html
there will be a plain text body which states that this mail client does not support html.
external css or images or javascript is not supported, so all style elements should go
inline.
<mail tag text attribute does not allow html content. Secondly no
"CC" attribute in the mail tag
------------------------------------------------------------------------------------------------
Key: JBPM-978
URL:
http://jira.jboss.com/jira/browse/JBPM-978
Project: JBoss jBPM
Issue Type: Bug
Components: BPEL
Affects Versions: jBPM jPDL 3.2
Environment: Operating System: Windows 2000 professional
Java 1.5, jboss server: jboss-4.0.4
JBPM runtime: jbpm-jpdl-3.2.GA
Reporter: Naseem Khan
Assigned To: Tom Baeyens
In jbpm email support, html formatting is not working.
<event type="node-leave">
<mail name="M_MailAction" actors="user(bert)"
to="#{Mail}"
template="jbpm.mail.templates.xml"
subject="Approval Mail to Admin"
text="Travel Approval
Form:<b>EmployeeId:</b>#{EmployeeId}"/>
</event>
Now in the text attribute, html tag is not working. At the time of process deployment
following exception occurred:
org.jbpm.jpdl.JpdlException: [[FATAL] line 28: The value of attribute "text"
associated with an element type "mail" must not contain the '<'
character., [ERROR] couldn't parse process definition]
org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:173)
org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive(JpdlArchiveParser.java:51)
org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:81)
org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(Unknown Source)
org.jbpm.webapp.servlet.ProcessUploadServlet.doDeployArchive(Unknown Source)
org.jbpm.webapp.servlet.ProcessUploadServlet.handleRequest(Unknown Source)
org.jbpm.webapp.servlet.ProcessUploadServlet.service(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Secondly there is no cc attribute in the mail tag.
--
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