You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by si...@apache.org on 2006/09/19 22:23:26 UTC

svn commit: r447949 - in /incubator/ofbiz/trunk/applications/content: servicedef/services_email.xml src/org/ofbiz/content/email/EmailServices.java

Author: sichen
Date: Tue Sep 19 13:23:25 2006
New Revision: 447949

URL: http://svn.apache.org/viewvc?view=rev&rev=447949
Log:
When store email as communication, set datetimeStarted and datetimeEnded as the current timestamp

Modified:
    incubator/ofbiz/trunk/applications/content/servicedef/services_email.xml
    incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java

Modified: incubator/ofbiz/trunk/applications/content/servicedef/services_email.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/content/servicedef/services_email.xml?view=diff&rev=447949&r1=447948&r2=447949
==============================================================================
--- incubator/ofbiz/trunk/applications/content/servicedef/services_email.xml (original)
+++ incubator/ofbiz/trunk/applications/content/servicedef/services_email.xml Tue Sep 19 13:23:25 2006
@@ -102,8 +102,8 @@
     </service>
     <service name="storeEmailAsCommunication" engine="java"
             location="org.ofbiz.content.email.EmailServices" invoke="storeEmailAsCommunication" auth="true">
-        <description>Store email as a communication event with the status COM_COMPLETE.  The communication event will be
-                     from the party of the userLogin to the party of the partyId parameter.  It is meant to run a SECA after
+        <description>Store email as a communication event with the status COM_COMPLETE and current timestamp as datetimeStarted and datetimeEnded.  
+                     The communication event will be from the party of the userLogin to the party of the partyId parameter.  It is meant to run a SECA after
                      a sendMail to record outgoing emails.</description>
         <attribute name="partyId" type="String" mode="IN" optional="true"/>
         <attribute name="communicationEventId" type="String" mode="IN" optional="true"/>

Modified: incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java?view=diff&rev=447949&r1=447948&r2=447949
==============================================================================
--- incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java (original)
+++ incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java Tue Sep 19 13:23:25 2006
@@ -498,6 +498,8 @@
             commEventMap.put("contactMechTypeId", "EMAIL_ADDRESS");
             commEventMap.put("partyIdFrom", partyIdFrom);
             commEventMap.put("partyIdTo", partyId);
+            commEventMap.put("datetimeStarted", UtilDateTime.nowTimestamp());
+            commEventMap.put("datetimeEnded", UtilDateTime.nowTimestamp());
             commEventMap.put("subject", subject);
             commEventMap.put("content", body);
             commEventMap.put("userLogin", userLogin);