svn commit: r632224 - in /ofbiz/trunk/applications/workeffort: script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml servicedef/services.xml

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

svn commit: r632224 - in /ofbiz/trunk/applications/workeffort: script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml servicedef/services.xml

hansbak-2
Author: hansbak
Date: Thu Feb 28 20:55:45 2008
New Revision: 632224

URL: http://svn.apache.org/viewvc?rev=632224&view=rev
Log:
solve a problem with the makeCommunicationEventWorkEffort service not working properly

Modified:
    ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml
    ofbiz/trunk/applications/workeffort/servicedef/services.xml

Modified: ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml?rev=632224&r1=632223&r2=632224&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml (original)
+++ ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml Thu Feb 28 20:55:45 2008
@@ -175,10 +175,12 @@
         <find-by-primary-key entity-name="CommunicationEventWorkEff" map-name="lookupMap" value-name="eventWe"/>
         <if-not-empty field-name="workEffortId" map-name="eventWe">
             <set-nonpk-fields map-name="parameters" value-name="eventWe"/>
+            <set field="eventWe.description" from-field="parameters.relationDescription"/>
             <store-value value-name="eventWe"/>
         </if-not-empty>
         <if-empty field-name="workEffortId" map-name="eventWe">
             <set-nonpk-fields map-name="parameters" value-name="lookupMap"/>
+            <set field="eventWe.description" from-field="parameters.relationDescription"/>
             <create-value value-name="lookupMap"/>
         </if-empty>
         <field-to-result field-name="workEffortId" map-name="lookupMap"/>

Modified: ofbiz/trunk/applications/workeffort/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/servicedef/services.xml?rev=632224&r1=632223&r2=632224&view=diff
==============================================================================
--- ofbiz/trunk/applications/workeffort/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/workeffort/servicedef/services.xml Thu Feb 28 20:55:45 2008
@@ -96,11 +96,13 @@
     </service>
     
     <!-- Communication Event WorkEffort -->
-    <service name="makeCommunicationEventWorkEffort" default-entity-name="CommunicationEventWorkEff" engine="simple"
+    <service name="makeCommunicationEventWorkEffort" default-entity-name="WorkEffort" engine="simple"
             location="org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="makeCommunicationEventWorkEffort" auth="true">
-        <description>Make a Communication Event Workeffort</description>
-        <auto-attributes include="all" mode="IN" optional="false"/>
-        <override name="description" optional="true"/>
+        <description>Make a Communication Event Workeffort and create the workeffort itself if the ID not supplied</description>
+        <auto-attributes include="pk" mode="INOUT" optional="false"/>
+        <auto-attributes include="nonpk" mode="IN" optional="true"/>
+        <attribute name="communicationEventId" type="String" mode="INOUT"/>
+        <attribute name="relationDescription" type="String" mode="IN" optional="true"/>
     </service>
 
     <!-- WorkEffortPartyAssignment services -->