Author: jacopoc
Date: Sat Oct 21 09:19:14 2006
New Revision: 466420

URL: http://svn.apache.org/viewvc?view=rev&rev=466420
Log:
converted deprecated minilang operations to the set operation.

Modified:
    
incubator/ofbiz/trunk/framework/common/script/org/ofbiz/common/LookupServices.xml
    
incubator/ofbiz/trunk/framework/common/script/org/ofbiz/common/period/PeriodServices.xml

Modified: 
incubator/ofbiz/trunk/framework/common/script/org/ofbiz/common/LookupServices.xml
URL: 
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/common/script/org/ofbiz/common/LookupServices.xml?view=diff&rev=466420&r1=466419&r2=466420
==============================================================================
--- 
incubator/ofbiz/trunk/framework/common/script/org/ofbiz/common/LookupServices.xml
 (original)
+++ 
incubator/ofbiz/trunk/framework/common/script/org/ofbiz/common/LookupServices.xml
 Sat Oct 21 09:19:14 2006
@@ -20,20 +20,20 @@
         
xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd";>
     <simple-method method-name="lookupParty" short-description="Lookup a 
party">
         <if-not-empty field-name="firstName" map-name="parameters">
-            <field-to-field field-name="firstName" map-name="parameters" 
to-map-name="LookupMap"/>
+            <set from-field="parameters.firstName" 
field="LookupMap.firstName"/>
         </if-not-empty>
         <if-not-empty field-name="lastName" map-name="parameters">
-            <field-to-field field-name="lastName" map-name="parameters" 
to-map-name="LookupMap"/>
+            <set from-field="parameters.lastName" field="LookupMap.lastName"/>
         </if-not-empty>               
         <find-by-and entity-name="Person" map-name="LookupMap" 
list-name="parties" /> 
         <iterate entry-name="party" list-name="parties">
-               <field-to-field field-name="firstName" map-name="party" 
to-field-name="label" to-map-name="resultEntry"/>
-               <field-to-field field-name="partyId" map-name="party" 
to-field-name="value" to-map-name="resultEntry"/>
+               <set from-field="party.firstName" field="resultEntry.label"/>
+               <set from-field="party.partyId" field="resultEntry.value"/>
                <field-to-list field-name="resultEntry" 
list-name="lookupResult"/>
         </iterate>
         <if-empty field-name="parties">
-               <string-to-field string="No match" field-name="label" 
map-name="resultEntry"/>
-               <string-to-field string="" field-name="value" 
map-name="resultEntry"/>
+               <set value="No match" field="resultEntry.label"/>
+               <set value="" field="resultEntry.value"/>
                <field-to-list field-name="resultEntry" 
list-name="lookupResult"/>
         </if-empty>
         <field-to-result field-name="lookupResult"/>    

Modified: 
incubator/ofbiz/trunk/framework/common/script/org/ofbiz/common/period/PeriodServices.xml
URL: 
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/common/script/org/ofbiz/common/period/PeriodServices.xml?view=diff&rev=466420&r1=466419&r2=466420
==============================================================================
--- 
incubator/ofbiz/trunk/framework/common/script/org/ofbiz/common/period/PeriodServices.xml
 (original)
+++ 
incubator/ofbiz/trunk/framework/common/script/org/ofbiz/common/period/PeriodServices.xml
 Sat Oct 21 09:19:14 2006
@@ -27,7 +27,7 @@
         <set-nonpk-fields map-name="parameters" value-name="newEntity"/>
         
         <sequenced-id-to-env sequence-name="CustomTimePeriod" 
env-name="customTimePeriodId"/>
-        <env-to-field env-name="customTimePeriodId" map-name="newEntity"/>
+        <set from-field="customTimePeriodId" 
field="newEntity.customTimePeriodId"/>
         <field-to-result field-name="customTimePeriodId" 
result-name="customTimePeriodId"/>
         
         <create-value value-name="newEntity"/>
@@ -55,7 +55,7 @@
     <simple-method method-name="findCustomTimePeriods" short-description="Find 
a CustomTimePeriod">
         <if-not-empty field-name="parameters.organizationPartyId">
             <!-- walk up the tree and find all party groups that this is a 
member of, and include the periods for all of them -->
-            <env-to-env env-name="parameters.organizationPartyId" 
to-env-name="getParentOrganizationsCallMap.organizationPartyId"/>
+            <set from-field="parameters.organizationPartyId" 
field="getParentOrganizationsCallMap.organizationPartyId"/>
             <call-service service-name="getParentOrganizations" 
in-map-name="getParentOrganizationsCallMap">
                 <result-to-field result-name="parentOrganizationPartyIdList"/>
             </call-service>


Reply via email to