svn commit: r466396 - in /incubator/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing: jobshopmgt/ProductionRunServices.xml techdata/RoutingSimpleEvents.xml

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

svn commit: r466396 - in /incubator/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing: jobshopmgt/ProductionRunServices.xml techdata/RoutingSimpleEvents.xml

jacopoc
Author: jacopoc
Date: Sat Oct 21 06:31:52 2006
New Revision: 466396

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

Modified:
    incubator/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml
    incubator/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleEvents.xml

Modified: incubator/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml?view=diff&rev=466396&r1=466395&r2=466396
==============================================================================
--- incubator/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml (original)
+++ incubator/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml Sat Oct 21 06:31:52 2006
@@ -25,8 +25,8 @@
 
         <if-not-empty field-name="workEffort">
             <if-compare value="PRUN_CANCELLED" operator="not-equals" field-name="currentStatusId" map-name="workEffort">
-                <field-to-field field-name="parameters.workEffortId" to-field-name="lookupComponentsMap.workEffortId"/>
-                <string-to-field string="WEGS_CREATED" field-name="lookupComponentsMap.statusId"/>
+                <set from-field="parameters.workEffortId" field="lookupComponentsMap.workEffortId"/>
+                <set value="WEGS_CREATED" field="lookupComponentsMap.statusId"/>
                 <set field="lookupComponentsMap.workEffortGoodStdTypeId" value="PRUNT_PROD_NEEDED"/>
 
                 <find-by-and entity-name="WorkEffortGoodStandard" list-name="components" map-name="lookupComponentsMap" />
@@ -68,17 +68,17 @@
             
             <!-- before we do the find, put together the orderBy list based on which reserveOrderEnumId is specified -->
             <if-compare value="INVRO_FIFO_EXP" operator="equals" field-name="reserveOrderEnumId" map-name="parameters">
-                <string-to-field string="+expireDate" field-name="orderByString"/>
+                <set value="+expireDate" field="orderByString"/>
             <else>
                 <if-compare value="INVRO_LIFO_EXP" operator="equals" field-name="reserveOrderEnumId" map-name="parameters">
-                    <string-to-field string="-expireDate" field-name="orderByString"/>
+                    <set value="-expireDate" field="orderByString"/>
                 <else>
                     <if-compare value="INVRO_LIFO_REC" operator="equals" field-name="reserveOrderEnumId" map-name="parameters">
-                        <string-to-field string="+datetimeReceived" field-name="orderByString"/>
+                        <set value="+datetimeReceived" field="orderByString"/>
                     <else>
                         <!-- the default reserveOrderEnumId is INVRO_FIFO_REC, ie FIFO based on date received -->
-                        <string-to-field string="-datetimeReceived" field-name="orderByString"/>
-                        <string-to-field string="INVRO_FIFO_REC" field-name="reserveOrderEnumId" map-name="parameters"/>
+                        <set value="-datetimeReceived" field="orderByString"/>
+                        <set value="INVRO_FIFO_REC" field="parameters.reserveOrderEnumId"/>
                     </else>
                     </if-compare>
                 </else>
@@ -101,8 +101,8 @@
             <if-compare field-name="parameters.quantityNotIssued" operator="not-equals" value="0" type="Double">
                 <if-not-empty field-name="lastNonSerInventoryItem">
                     <!-- create ItemIssuance record -->
-                    <field-to-field field-name="workEffortId" map-name="parameters" to-map-name="issuanceCreateMap"/>
-                    <field-to-field field-name="inventoryItemId" map-name="lastNonSerInventoryItem" to-map-name="issuanceCreateMap"/>
+                    <set from-field="parameters.workEffortId" field="issuanceCreateMap.workEffortId"/>
+                    <set from-field="lastNonSerInventoryItem.inventoryItemId" field="issuanceCreateMap.inventoryItemId"/>
                     <env-to-env env-name="parameters.quantityNotIssued" to-env-name="issuanceCreateMap.quantity"/>
                     <call-service service-name="assignInventoryToWorkEffort" in-map-name="issuanceCreateMap">
                     </call-service>
@@ -155,7 +155,7 @@
 
                 <calculate field-name="quantityNotIssued" map-name="parameters"><number value="0"/></calculate>
             </if-compare>
-            <string-to-field string="WEGS_COMPLETED" field-name="workEffortGoodStandard.statusId"/>
+            <set value="WEGS_COMPLETED" field="workEffortGoodStandard.statusId"/>
             <store-value value-name="workEffortGoodStandard"/>
         </if-not-empty>
     </simple-method>
@@ -165,12 +165,12 @@
             <if-compare value="SERIALIZED_INV_ITEM" operator="equals" field-name="inventoryItemTypeId" map-name="inventoryItem">
                 <if-compare value="INV_AVAILABLE" operator="equals" field-name="statusId" map-name="inventoryItem">
                     <!-- change status on inventoryItem -->
-                    <string-to-field string="INV_DELIVERED" field-name="inventoryItem.statusId"/>
+                    <set value="INV_DELIVERED" field="inventoryItem.statusId"/>
                     <store-value value-name="inventoryItem"/>
 
                     <!-- create ItemIssuance record -->
-                    <field-to-field field-name="workEffortId" map-name="parameters" to-map-name="issuanceCreateMap"/>
-                    <field-to-field field-name="inventoryItemId" map-name="inventoryItem" to-map-name="issuanceCreateMap"/>
+                    <set from-field="parameters.workEffortId" field="issuanceCreateMap.workEffortId"/>
+                    <set from-field="inventoryItem.inventoryItemId" field="issuanceCreateMap.inventoryItemId"/>
                     <calculate field-name="quantity" map-name="issuanceCreateMap"><number value="1"/></calculate>
                     <call-service service-name="assignInventoryToWorkEffort" in-map-name="issuanceCreateMap"/>
                     <clear-field field-name="issuanceCreateMap"/>
@@ -185,16 +185,16 @@
                     <!-- reduce atp on inventoryItem if availableToPromise greater than 0, if not the code at the end of this method will handle it -->
                     <if-compare field-name="inventoryItem.availableToPromiseTotal" operator="greater" value="0" type="Double">
                         <if-compare-field field-name="parameters.quantityNotIssued" operator="greater" to-field-name="inventoryItem.availableToPromiseTotal" type="Double">
-                            <field-to-field field-name="availableToPromiseTotal" map-name="inventoryItem" to-field-name="deductAmount" to-map-name="parameters"/>
+                            <set from-field="inventoryItem.availableToPromiseTotal" field="parameters.deductAmount"/>
                         <else>
-                            <field-to-field field-name="quantityNotIssued" map-name="parameters" to-field-name="deductAmount" to-map-name="parameters"/>
+                            <set from-field="parameters.quantityNotIssued" field="parameters.deductAmount"/>
                         </else>
                         </if-compare-field>
                         
                         <!-- create WorkEffortInventoryAssign record -->
-                        <field-to-field field-name="workEffortId" map-name="parameters" to-map-name="issuanceCreateMap"/>
-                        <field-to-field field-name="inventoryItemId" map-name="inventoryItem" to-map-name="issuanceCreateMap"/>
-                        <field-to-field field-name="deductAmount" map-name="parameters" to-field-name="quantity" to-map-name="issuanceCreateMap"/>
+                        <set from-field="parameters.workEffortId" field="issuanceCreateMap.workEffortId"/>
+                        <set from-field="inventoryItem.inventoryItemId" field="issuanceCreateMap.inventoryItemId"/>
+                        <set from-field="parameters.deductAmount" field="issuanceCreateMap.quantity"/>
                         <call-service service-name="assignInventoryToWorkEffort" in-map-name="issuanceCreateMap">
                         </call-service>
 

Modified: incubator/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleEvents.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleEvents.xml?view=diff&rev=466396&r1=466395&r2=466396
==============================================================================
--- incubator/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleEvents.xml (original)
+++ incubator/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/techdata/RoutingSimpleEvents.xml Sat Oct 21 06:31:52 2006
@@ -37,7 +37,7 @@
         <call-map-processor xml-resource="org/ofbiz/manufacturing/techdata/RoutingMapProcs.xml"
                 processor-name="routingTaskAssoc" in-map-name="parameters" out-map-name="context1"/>
         <check-errors/>
-        <string-to-field string="Y" field-name="create" map-name="context1"/>
+        <set value="Y" field="context1.create"/>
         <call-service service-name="checkRoutingTaskAssoc" in-map-name="context1">
             <result-to-field result-name="sequenceNumNotOk"  field-name="sequenceNumNotOk"/>
         </call-service>