AnsweredAssumed Answered

How to add conditions to mail content

Question asked by onlinesun on Jan 15, 2014
Latest reply on Jan 17, 2014 by onlinesun
In my bpmn.xml file, I'm trying to send out email once a form is submitted, it works fine with one issue: sometimes there are empty fields in the form, and I don't want to send them out, is there any way to add conditions to the mail content?
<activiti:field name="html">
&lt;activiti:expression><![CDATA[

&lt;html>
&lt;body>
&lt;table>&lt;tr>&lt;th>Course&lt;/th>&lt;th>Credits&lt;/th>&lt;/tr>
&lt;tr>&lt;td>${Course1}&lt;/td>&lt;td>${Credit1}&lt;/td>&lt;/tr>

Is there a way to say
if${Course2}!='' then
&lt;tr>&lt;td>${Course2}&lt;/td>&lt;td>${Credit2}&lt;/td>&lt;/tr>

Outcomes