<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to add conditions to mail content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-conditions-to-mail-content/m-p/157766#M111929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;amp;lt;activiti:field name="html"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;amp;lt;activiti:expression&amp;gt;&amp;lt;![CDATA[&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;amp;lt;html&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;amp;lt;body&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;amp;lt;table&amp;gt;&amp;amp;lt;tr&amp;gt;&amp;amp;lt;th&amp;gt;Course&amp;amp;lt;/th&amp;gt;&amp;amp;lt;th&amp;gt;Credits&amp;amp;lt;/th&amp;gt;&amp;amp;lt;/tr&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;amp;lt;tr&amp;gt;&amp;amp;lt;td&amp;gt;${Course1}&amp;amp;lt;/td&amp;gt;&amp;amp;lt;td&amp;gt;${Credit1}&amp;amp;lt;/td&amp;gt;&amp;amp;lt;/tr&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to say &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if${Course2}!='' then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;amp;lt;tr&amp;gt;&amp;amp;lt;td&amp;gt;${Course2}&amp;amp;lt;/td&amp;gt;&amp;amp;lt;td&amp;gt;${Credit2}&amp;amp;lt;/td&amp;gt;&amp;amp;lt;/tr&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jan 2014 17:51:48 GMT</pubDate>
    <dc:creator>onlinesun</dc:creator>
    <dc:date>2014-01-15T17:51:48Z</dc:date>
    <item>
      <title>How to add conditions to mail content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-conditions-to-mail-content/m-p/157766#M111929</link>
      <description>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?&amp;amp;lt;activiti:field name="html"&amp;gt;&amp;amp;lt;activiti:exp</description>
      <pubDate>Wed, 15 Jan 2014 17:51:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-add-conditions-to-mail-content/m-p/157766#M111929</guid>
      <dc:creator>onlinesun</dc:creator>
      <dc:date>2014-01-15T17:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to add conditions to mail content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-conditions-to-mail-content/m-p/157767#M111930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The email-templating is done using JUEL, which has a limited amount of support for this kind of stuff. If you want to have complex templating, you might consider using another approach, eg. a custom ServiceTask which uses Freemarker and passed in all the process-variables as model. Using field-injection (see userguide), you can reuse this custom mail-task in your processes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 08:40:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-add-conditions-to-mail-content/m-p/157767#M111930</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-16T08:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to add conditions to mail content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-conditions-to-mail-content/m-p/157768#M111931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, I showed my client your post, and they decided a snapshot of form is good enough.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 16:36:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-add-conditions-to-mail-content/m-p/157768#M111931</guid>
      <dc:creator>onlinesun</dc:creator>
      <dc:date>2014-01-17T16:36:27Z</dc:date>
    </item>
  </channel>
</rss>

