svn commit: r571302 - /ofbiz/trunk/applications/party/servicedef/secas.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r571302 - /ofbiz/trunk/applications/party/servicedef/secas.xml

jaz-3
Author: jaz
Date: Thu Aug 30 13:41:42 2007
New Revision: 571302

URL: http://svn.apache.org/viewvc?rev=571302&view=rev
Log:
now the AUTO_EMAIL_COMM type is treated just like standard EMAIL, not really sure why there are two, but not dealing with that right now

Modified:
    ofbiz/trunk/applications/party/servicedef/secas.xml

Modified: ofbiz/trunk/applications/party/servicedef/secas.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/secas.xml?rev=571302&r1=571301&r2=571302&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/servicedef/secas.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/secas.xml Thu Aug 30 13:41:42 2007
@@ -74,6 +74,32 @@
         <action service="sendCommEventAsEmail" mode="sync"/>
     </eca>
 
+    <!-- same for auto email -->
+    <eca service="createCommunicationEvent" event="commit">
+        <condition field-name="statusId" operator="equals" value="COM_IN_PROGRESS"/>
+        <condition field-name="communicationEventTypeId" operator="equals" value="AUTO_EMAIL_COMM"/>
+        <condition field-name="contactListId" operator="is-empty"/>
+        <action service="sendCommEventAsEmail" mode="sync"/>
+    </eca>
+    <eca service="createCommunicationEvent" event="commit">
+        <condition field-name="statusId" operator="equals" value="COM_IN_PROGRESS"/>
+        <condition field-name="communicationEventTypeId" operator="equals" value="AUTO_EMAIL_COMM"/>
+        <condition field-name="contactListId" operator="is-not-empty"/>
+        <action service="sendCommEventAsEmail" mode="async"/>
+    </eca>
+    <eca service="updateCommunicationEvent" event="commit">
+        <condition field-name="statusId" operator="equals" value="COM_IN_PROGRESS"/>
+        <condition field-name="communicationEventTypeId" operator="equals" value="AUTO_EMAIL_COMM"/>
+        <condition field-name="contactListId" operator="is-empty"/>
+        <action service="sendCommEventAsEmail" mode="sync"/>
+    </eca>    
+    <eca service="updateCommunicationEvent" event="commit">
+        <condition field-name="statusId" operator="equals" value="COM_IN_PROGRESS"/>
+        <condition field-name="communicationEventTypeId" operator="equals" value="AUTO_EMAIL_COMM"/>
+        <condition field-name="contactListId" operator="is-not-empty"/>
+        <action service="sendCommEventAsEmail" mode="async"/>
+    </eca>
+
     <!-- After all the emails have been sent to a contact list, mark it as complete. -->
     <eca service="sendEmailToContactList" event="commit">
         <action service="setCommEventComplete" mode="sync"/>