svn commit: r772971 - in /ofbiz/trunk/applications: content/servicedef/secas.xml 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: r772971 - in /ofbiz/trunk/applications: content/servicedef/secas.xml party/servicedef/secas.xml

jaz-3
Author: jaz
Date: Fri May  8 13:20:12 2009
New Revision: 772971

URL: http://svn.apache.org/viewvc?rev=772971&view=rev
Log:
moved eca to call storeEmailAsCommunication to the party component where the service actually resides

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

Modified: ofbiz/trunk/applications/content/servicedef/secas.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/servicedef/secas.xml?rev=772971&r1=772970&r2=772971&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/servicedef/secas.xml (original)
+++ ofbiz/trunk/applications/content/servicedef/secas.xml Fri May  8 13:20:12 2009
@@ -29,14 +29,7 @@
         <condition field-name="surveyId" operator="is-not-empty"/>
         <action service="createSurveyQuestionAppl" mode="sync"/>
     </eca>
-
-    <!-- emails should not be stored as new communication event if there is no partyId or if it is already a commevent being sent out -->
-    <eca service="sendMail" event="commit">
-        <condition field-name="partyId" operator="is-not-empty"/>
-        <condition field-name="communicationEventId" operator="is-empty"/>
-        <action service="storeEmailAsCommunication" mode="sync"/>
-    </eca>
-
+    
     <!-- create data resource ecas -->
     <eca service="createDataResource" event="commit">
         <condition field-name="partyId" operator="is-not-empty"/>

Modified: ofbiz/trunk/applications/party/servicedef/secas.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/secas.xml?rev=772971&r1=772970&r2=772971&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/servicedef/secas.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/secas.xml Fri May  8 13:20:12 2009
@@ -60,6 +60,13 @@
         <action service="createWorkEffort" mode="sync"/>
     </eca>
 
+    <!-- emails should not be stored as new communication event if there is no partyId or if it is already a commevent being sent out -->
+    <eca service="sendMail" event="commit">
+        <condition field-name="partyId" operator="is-not-empty"/>
+        <condition field-name="communicationEventId" operator="is-empty"/>
+        <action service="storeEmailAsCommunication" mode="sync"/>
+    </eca>
+    
     <!-- all these secas are now replaced by a sheduled job (sendEmailDated) which runs every 5 minutes -->
 
     <!-- After all the emails have been sent to a contact list, mark it as complete. -->