svn commit: r467397 - in /incubator/ofbiz/trunk/applications: content/script/org/ofbiz/content/content/ content/script/org/ofbiz/content/data/ content/script/org/ofbiz/content/layout/ party/script/org/ofbiz/party/customer/ party/script/org/ofbiz/party/...

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

svn commit: r467397 - in /incubator/ofbiz/trunk/applications: content/script/org/ofbiz/content/content/ content/script/org/ofbiz/content/data/ content/script/org/ofbiz/content/layout/ party/script/org/ofbiz/party/customer/ party/script/org/ofbiz/party/...

jacopoc
Author: jacopoc
Date: Tue Oct 24 10:34:11 2006
New Revision: 467397

URL: http://svn.apache.org/viewvc?view=rev&rev=467397
Log:
Conversion of <field-to-field> to <set> operations; thanks to Ashish Vijaywargiya for the patch (OFBIZ-402).

Modified:
    incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentEvents.xml
    incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentPermissionEvents.xml
    incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml
    incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/layout/LayoutEvents.xml
    incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml
    incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml
    incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml
    incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryIssueServices.xml
    incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/price/PriceServices.xml
    incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/storage/FacilityContactMechServices.xml
    incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/storage/StorageServices.xml

Modified: incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentEvents.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentEvents.xml?view=diff&rev=467397&r1=467396&r2=467397
==============================================================================
--- incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentEvents.xml (original)
+++ incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentEvents.xml Tue Oct 24 10:34:11 2006
@@ -14,15 +14,16 @@
 License for the specific language governing permissions and limitations
 under the License.
 -->
-<simple-methods>
-    <simple-method login-required="false" method-name="createContentAndPurpose">
+<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd">
+    <simple-method login-required="false" method-name="createContentAndPurpose" short-description="Create Content And Purpose">
       <log level="always" message="in createContentAndPurpose."/>
       <log level="always" message="parameters: ${parameters}"/>
       <make-value entity-name="Content" value-name="currentContent"/>
       <set-pk-fields map-name="parameters" value-name="currentContent"/>
       <set-nonpk-fields map-name="parameters" value-name="currentContent"/>
       <call-map-processor in-map-name="currentContent" out-map-name="currentContent">
-        <simple-map-processor>
+        <simple-map-processor name="newDateContent">
         <process field="createdDate">
           <convert type="Timestamp">
             <fail-message message="Created Date is not a valid Timestamp input format."/>
@@ -38,11 +39,9 @@
       <map-to-map map-name="currentContent" to-map-name="context" />
       <log level="always" message="currentContent: ${currentContent}"/>
       <log level="always" message="context: ${context}"/>
-      <field-to-field map-name="parameters" field-name="contentPurposeTypeId"
-          to-map-name="context" />
+      <set field="context.contentPurposeTypeId" from-field="parameters.contentPurposeTypeId" />  
       <string-to-list list-name="targetOperationList" string="CONTENT_CREATE"/>
-      <env-to-field env-name="targetOperationList" to-map-name="context"
-               to-field-name="targetOperationList" />
+      <env-to-field env-name="targetOperationList" map-name="context" field-name="targetOperationList" />  
       <session-to-field field-name="userLogin" map-name="context" session-name="userLogin"/>
       <call-service in-map-name="context" service-name="createContent">
         <result-to-field field-name="contentId" result-name="contentId"/>
@@ -70,24 +69,22 @@
       <if-not-empty field-name="contentPurposeTypeId" map-name="parameters">
       <log level="always" message="contentPurposeTypeId: ${parameters.contentPurposeTypeId}"/>
           <make-value entity-name="ContentPurpose" value-name="newContentPurpose"/>
-          <field-to-field map-name="parameters" field-name="contentPurposeTypeId"
-            to-map-name="newContentPurpose"/>
+          <set field="newContentPurpose.contentPurposeTypeId" from-field="parameters.contentPurposeTypeId" />
       <log level="always" message="contentId: ${contentId}"/>
-          <field-to-field field-name="contentId"
-                to-map-name="newContentPurpose" to-field-name="contentId"/>
+          <set field="newContentPurpose.contentId" from-field="contentId" />
           <create-value value-name="newContentPurpose"/>
       <log level="always" message="newContentPurpose: ${newContentPurpose}"/>
      </if-not-empty>
     </simple-method>
 
-    <simple-method login-required="false" method-name="updateContent">
+    <simple-method login-required="false" method-name="updateContent" short-description="Update Content">
       <log level="always" message="/nin updateContent."/>
       <log level="always" message="parameters: ${parameters}"/>
       <make-value entity-name="Content" value-name="currentContent"/>
       <set-pk-fields map-name="parameters" value-name="currentContent"/>
       <set-nonpk-fields map-name="parameters" value-name="currentContent"/>
       <call-map-processor in-map-name="currentContent" out-map-name="currentContent">
-        <simple-map-processor>
+        <simple-map-processor name="newDateContent">
         <process field="createdDate">
           <convert type="Timestamp">
             <fail-message message="Created Date is not a valid Timestamp input format."/>
@@ -104,11 +101,9 @@
       <map-to-map map-name="currentContent" to-map-name="context" />
       <get-related value-name="currentContent" relation-name="ContentPurpose"
                   list-name="contentPurposeList" />
-      <env-to-field env-name="contentPurposeList" to-map-name="context"
-                             to-field-name="contentPurposeList" />
+      <env-to-field env-name="contentPurposeList" map-name="context" field-name="contentPurposeList" />  
       <string-to-list list-name="targetOperationList" string="CONTENT_UPDATE"/>
-      <env-to-field env-name="targetOperationList" to-map-name="context"
-               to-field-name="targetOperationList" />
+      <env-to-field env-name="targetOperationList" map-name="context" field-name="targetOperationList" />  
       <session-to-field field-name="userLogin" map-name="context" session-name="userLogin"/>
       <call-service in-map-name="context" service-name="updateContent">
         <result-to-field field-name="contentId" result-name="contentId"/>
@@ -116,23 +111,20 @@
       <check-errors/>
     </simple-method>
 
-    <simple-method login-required="true" method-name="addContentAssoc">
+    <simple-method login-required="true" method-name="addContentAssoc" short-description="Add Content Assoc">
         <log level="always" message="in addContentAssoc."/>
         <log level="always" message="parameters: ${parameters}"/>
 
 
         <!-- link article to publish point -->
-        <field-to-field map-name="parameters" field-name="contentIdTo"
-                        to-map-name="context3" to-field-name="contentIdTo" />
-        <field-to-field map-name="parameters" field-name="contentId"
-                        to-map-name="context3" to-field-name="contentIdFrom" />
-        <field-to-field map-name="parameters" field-name="contentAssocTypeId"
-                        to-map-name="context3" to-field-name="contentAssocTypeId" />
+        <set field="context3.contentIdTo" from-field="parameters.contentIdTo" />
+        <set field="context3.contentIdFrom" from-field="parameters.contentId" />
+        <set field="context3.contentAssocTypeId" from-field="parameters.contentAssocTypeId" />
         <session-to-field field-name="userLogin" map-name="context3" session-name="userLogin"/>
         <string-to-list list-name="contentPurposeList" string="_NA_"/>
-        <field-to-field field-name="contentPurposeList" to-map-name="context3"/>
+        <set field="context3.contentPurposeList" from-field="contentPurposeList" />
         <string-to-list list-name="targetOperationList" string="ASSOC_CONTENT"/>
-        <field-to-field field-name="targetOperationList" to-map-name="context3"/>
+        <set field="context3.targetOperationList" from-field="targetOperationList" />
         <call-service in-map-name="context3" service-name="assocContent">
         </call-service>
 

Modified: incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentPermissionEvents.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentPermissionEvents.xml?view=diff&rev=467397&r1=467396&r2=467397
==============================================================================
--- incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentPermissionEvents.xml (original)
+++ incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/content/ContentPermissionEvents.xml Tue Oct 24 10:34:11 2006
@@ -14,8 +14,9 @@
 License for the specific language governing permissions and limitations
 under the License.
 -->
-<simple-methods>
-    <simple-method login-required="false" method-name="createContentAndPurpose">
+<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd">
+    <simple-method login-required="false" method-name="createContentAndPurpose" short-description="Create Content And Purpose">
         <make-value entity-name="Content" value-name="currentContent"/>
         <set-pk-fields map-name="parameters" value-name="currentContent"/>
         <set-nonpk-fields map-name="parameters" value-name="currentContent"/>
@@ -28,10 +29,10 @@
         <field-to-list field-name="contentPurposeTypeId"
             list-name="contentPurposeList" map-name="parameters"/>
         <string-to-list list-name="targetOperationList" string="CONTENT_CREATE"/>
-        <field-to-field field-name="currentContent" to-map-name="context"/>
-        <field-to-field field-name="contentPurposeList" to-map-name="context"/>
-        <field-to-field field-name="targetOperationList" to-map-name="context"/>
-        <field-to-field field-name="currentContent" to-map-name="context"/>
+        <set field="context.currentContent" from-field="currentContent" />
+        <set field="context.contentPurposeList" from-field="contentPurposeList" />
+        <set field="context.targetOperationList" from-field="targetOperationList" />
+        <set field="context.currentContent" from-field="currentContent" />
         <session-to-field field-name="userLogin" map-name="context" session-name="userLogin"/>
         <call-service in-map-name="context" service-name="checkContentPermission">
             <result-to-field field-name="permissionStatus" result-name="permissionStatus"/>
@@ -49,9 +50,8 @@
             <create-value value-name="currentContent"/>
             <if-not-empty field-name="contentPurposeTypeId" map-name="parameters">
                 <make-value entity-name="ContentPurpose" value-name="newContentPurpose"/>
-                <field-to-field field-name="contentPurposeTypeId"
-                    map-name="parameters" to-map-name="newContentPurpose"/>
-                <field-to-field field-name="contentId" map-name="currentContent" to-map-name="newContentPurpose"/>
+                <set field="newContentPurpose.contentPurposeTypeId" from-field="parameters.contentPurposeTypeId" />
+                <set field="newContentPurpose.contentId" from-field="currentContent.contentId" />
                 <create-value value-name="newContentPurpose"/>
             </if-not-empty>
         </if-compare>

Modified: incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml?view=diff&rev=467397&r1=467396&r2=467397
==============================================================================
--- incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml (original)
+++ incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/data/DataServices.xml Tue Oct 24 10:34:11 2006
@@ -569,7 +569,7 @@
         
         <if-empty field-name="currentContent">
             <if-not-empty field-name="contentId" map-name="parameters">
-                <field-to-field field-name="contentId" map-name="parameters" to-map-name="contextA"/>
+                <set field="contextA.contentId" from-field="parameters.contentId" />
                 <find-by-primary-key value-name="currentContent" entity-name="Content"
                          map-name="contextA" use-cache="true" />
             </if-not-empty>
@@ -587,7 +587,7 @@
         </if-empty>
         <check-errors/>
         <field-to-result field-name="currentContent.dataResourceId" result-name="dataResourceId"/>    
-        <field-to-field field-name="dataResourceId" map-name="currentContent" to-map-name="contextB"/>
+        <set field="contextB.dataResourceId" from-field="currentContent.dataResourceId" />
         <find-by-primary-key value-name="eText" entity-name="ElectronicText"
                          map-name="contextB" use-cache="true" />
         <if-empty field-name="eText" >

Modified: incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/layout/LayoutEvents.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/layout/LayoutEvents.xml?view=diff&rev=467397&r1=467396&r2=467397
==============================================================================
--- incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/layout/LayoutEvents.xml (original)
+++ incubator/ofbiz/trunk/applications/content/script/org/ofbiz/content/layout/LayoutEvents.xml Tue Oct 24 10:34:11 2006
@@ -14,8 +14,9 @@
 License for the specific language governing permissions and limitations
 under the License.
 -->
-<simple-methods>
-    <simple-method login-required="true" method-name="createLayout">
+<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd">
+    <simple-method login-required="true" method-name="createLayout" short-description="Create Layout">
       <log level="always" message="in createLayout."/>
       <log level="always" message="parameters: ${parameters}"/>
 
@@ -24,14 +25,11 @@
       <set-nonpk-fields map-name="parameters" value-name="currentContent"/>
       <map-to-map map-name="currentContent" to-map-name="context" />
       <log level="always" message="context: ${context}"/>
-      <field-to-field map-name="parameters" field-name="contentPurposeTypeId"
-          to-map-name="context" />
+      <set field="context.contentPurposeTypeId" from-field="parameters.contentPurposeTypeId" />  
       <string-to-list list-name="targetOperationList" string="CONTENT_CREATE"/>
-      <env-to-field env-name="targetOperationList" to-map-name="context"
-               to-field-name="targetOperationList" />
+      <env-to-field env-name="targetOperationList"  map-name="context" field-name="targetOperationList" />
       <session-to-field field-name="userLogin" map-name="context" session-name="userLogin"/>
-      <field-to-field map-name="parameters" field-name="drObjectInfo"
-                      to-map-name="context" to-field-name="objectInfo" />
+      <set field="context.objectInfo" from-field="parameters.drObjectInfo" />  
       <string-to-field string="LOCAL_FILE" map-name="context" field-name="dataResourceTypeId" />
       <call-service in-map-name="context" service-name="persistContentAndAssoc">
         <result-to-field field-name="contentId" result-name="contentId"/>
@@ -47,16 +45,15 @@
       <field-to-request field-name="dataResourceId" request-name="drDataResourceId" />
 
     </simple-method>
-    <simple-method login-required="true" method-name="updateLayout">
+    <simple-method login-required="true" method-name="updateLayout" short-description="Update Layout">
       <log level="always" message="in updateLayout."/>
       <log level="always" message="parameters: ${parameters}"/>
 
       <make-value entity-name="Content" value-name="currentContent"/>
       <set-pk-fields map-name="parameters" value-name="currentContent"/>
       <set-nonpk-fields map-name="parameters" value-name="currentContent"/>
-      <field-to-field field-name="currentContent" to-map-name="context" />
-      <field-to-field map-name="parameters" field-name="contentPurposeTypeId"
-          to-map-name="context" />
+      <set field="context.currentContent" from-field="currentContent" />  
+      <set field="context.contentPurposeTypeId" from-field="parameters.contentPurposeTypeId" />  
       <string-to-list list-name="targetOperationList" string="CONTENT_CREATE"/>
       <env-to-field env-name="targetOperationList" map-name="context"
                field-name="targetOperationList" />
@@ -70,17 +67,16 @@
         </add-error>
       </if-compare>
       <check-errors/>
-      <field-to-field map-name="parameters" field-name="contentId" to-map-name="content" />
+      <set field="content.contentId" from-field="parameters.contentId" />  
       <find-by-primary-key entity-name="Content" value-name="content" map-name="content"/>
       <set-nonpk-fields map-name="parameters" value-name="content"/>
       <log level="always" message="content: ${content}"/>
       <store-value value-name="content"/>
       <field-to-request map-name="content" field-name="contentId" request-name="contentId" />
-      <field-to-field map-name="parameters" field-name="dataResourceId" to-map-name="dataResource" />
+      <set field="dataResource.dataResourceId" from-field="parameters.dataResourceId" />
       <find-by-primary-key entity-name="DataResource" value-name="dataResource" map-name="dataResource"/>
       <set-nonpk-fields map-name="parameters" value-name="dataResource"/>
-      <field-to-field map-name="parameters" field-name="drObjectInfo"
-                      to-map-name="dataResource" to-field-name="objectInfo" />
+      <set field="dataResource.objectInfo" from-field="parameters.drObjectInfo" />
       <log level="always" message="dataResource: ${dataResource}"/>
       <store-value value-name="dataResource"/>
       <field-to-request map-name="dataResource" field-name="dataResourceId" request-name="drDataResourceId" />
@@ -88,7 +84,7 @@
     </simple-method>
 
 
-    <simple-method login-required="true" method-name="createLayoutText">
+    <simple-method login-required="true" method-name="createLayoutText" short-description="Create Layout Text">
       <log level="always" message="in createLayoutText."/>
       <log level="always" message="parameters: ${parameters}"/>
 
@@ -100,10 +96,10 @@
                   processor-name="contentAssocIn" in-map-name="parameters" out-map-name="context" />
 
       <log level="always" message="context: ${context}"/>
-      <field-to-field map-name="context" field-name="contentName" to-field-name="dataResourceName" />
-      <field-to-field map-name="parameters" field-name="contentPurposeTypeId" to-map-name="context" />
-      <field-to-field map-name="parameters" field-name="contentIdTo" to-map-name="context" />
-      <field-to-field map-name="parameters" field-name="textData" to-map-name="context" />
+      <set field="context.dataResourceName" from-field="context.contentName"/>  
+      <set field="context.contentPurposeTypeId" from-field="parameters.contentPurposeTypeId" />  
+      <set field="context.contentIdTo" from-field="parameters.contentIdTo" />  
+      <set field="context.textData" from-field="parameters.textData" />  
       <session-to-field field-name="userLogin" map-name="context" session-name="userLogin"/>
       <string-to-field string="ELECTRONIC_TEXT" map-name="context" field-name="dataResourceTypeId" />
       <string-to-field string="text/plain" map-name="context" field-name="mimeTypeId" />
@@ -121,8 +117,8 @@
       <string-to-field string="SubContentDataResourceView" field-name="currentEntityName" />
       <field-to-request field-name="currentEntityName" request-name="currentEntityName" />
 
-      <field-to-field map-name="parameters" field-name="contentIdTo" to-map-name="context2" />
-      <field-to-field map-name="parameters" field-name="mapKey" to-map-name="context2" />
+      <set field="context2.contentIdTo" from-field="parameters.contentIdTo" />  
+      <set field="context2.mapKey" from-field="parameters.mapKey" />  
       <if-not-empty map-name="context2" field-name="activeContentId">
         <call-service in-map-name="context2" service-name="deactivateAssocs">
           <result-to-field field-name="deactivateList" result-name="deactivateList"/>
@@ -144,7 +140,7 @@
       -->
     </simple-method>
 
-    <simple-method login-required="true" method-name="updateLayoutText">
+    <simple-method login-required="true" method-name="updateLayoutText" short-description="Update Layout Text">
       <log level="always" message="in updateLayoutText."/>
       <log level="always" message="parameters: ${parameters}"/>
 
@@ -156,10 +152,10 @@
                   processor-name="contentAssocIn" in-map-name="parameters" out-map-name="context" />
 
       <log level="always" message="context: ${context}"/>
-      <field-to-field map-name="context" field-name="contentName" to-field-name="dataResourceName" />
-      <field-to-field map-name="parameters" field-name="contentPurposeTypeId" to-map-name="context" />
-      <field-to-field map-name="parameters" field-name="contentIdTo" to-map-name="context" />
-      <field-to-field map-name="parameters" field-name="textData" to-map-name="context" />
+      <set field="context.dataResourceName" from-field="context.contentName" />
+      <set field="context.contentPurposeTypeId" from-field="parameters.contentPurposeTypeId" />  
+      <set field="context.contentIdTo" from-field="parameters.contentIdTo" />  
+      <set field="context.textData" from-field="parameters.textData" />  
       <session-to-field field-name="userLogin" map-name="context" session-name="userLogin"/>
       <call-service in-map-name="context" service-name="persistContentAndAssoc">
           <result-to-field result-name="contentId" field-name="contentId"/>
@@ -169,7 +165,7 @@
     </simple-method>
 
 
-    <simple-method login-required="true" method-name="createLayoutImage">
+    <simple-method login-required="true" method-name="createLayoutImage" short-description="Create Layout Image">
       <log level="always" message="in createLayoutImage."/>
       <call-class-method class-name="org.ofbiz.content.layout.LayoutWorker"
             method-name="uploadImageAndParameters"
@@ -196,9 +192,9 @@
                   processor-name="contentAssocIn" in-map-name="formInput" out-map-name="context" />
 
       <log level="always" message="context: ${context}"/>
-      <field-to-field map-name="context" field-name="contentName" to-field-name="dataResourceName" />
-      <field-to-field map-name="formInput" field-name="contentPurposeTypeId" to-map-name="context" />
-      <field-to-field map-name="formInput" field-name="contentIdTo" to-map-name="context" />
+      <set field="context.dataResourceName" from-field="context.contentName" />  
+      <set field="context.contentPurposeTypeId" from-field="formInput.contentPurposeTypeId" />  
+      <set field="context.contentIdTo" from-field="formInput.contentIdTo" />  
       <session-to-field field-name="userLogin" map-name="context" session-name="userLogin"/>
       <string-to-field string="IMAGE_OBJECT" map-name="context" field-name="dataResourceTypeId" />
       <string-to-field string="text/plain" map-name="context" field-name="mimeTypeId" />
@@ -217,8 +213,8 @@
       <string-to-field string="SubContentDataResourceView" field-name="currentEntityName" />
       <field-to-request field-name="currentEntityName" request-name="currentEntityName" />
 
-      <field-to-field map-name="formInput" field-name="contentIdTo" to-map-name="context2" />
-      <field-to-field map-name="formInput" field-name="mapKey" to-map-name="context2" />
+      <set field="context2.contentIdTo" from-field="formInput.contentIdTo" />  
+      <set field="context2.mapKey" from-field="formInput.mapKey" />  
       <if-not-empty map-name="context2" field-name="activeContentId">
         <call-service in-map-name="context2" service-name="deactivateAssocs">
           <result-to-field field-name="deactivateList" result-name="deactivateList"/>
@@ -240,7 +236,7 @@
       -->
     </simple-method>
 
-    <simple-method login-required="true" method-name="createLayoutUrl" >
+    <simple-method login-required="true" method-name="createLayoutUrl" short-description="Create Layout URL">
       <log level="always" message="in createLayoutUrl"/>
       <log level="always" message="parameters: ${parameters}"/>
 
@@ -252,9 +248,9 @@
                   processor-name="contentAssocIn" in-map-name="parameters" out-map-name="context" />
 
       <log level="always" message="context: ${context}"/>
-      <field-to-field map-name="context" field-name="contentName" to-field-name="dataResourceName" />
-      <field-to-field map-name="parameters" field-name="contentPurposeTypeId" to-map-name="context" />
-      <field-to-field map-name="parameters" field-name="contentIdTo" to-map-name="context" />
+      <set field="context.dataResourceName" from-field="context.contentName" />
+      <set field="context.contentPurposeTypeId" from-field="parameters.contentPurposeTypeId" />
+      <set field="context.contentIdTo" from-field="parameters.contentIdTo" />  
       <session-to-field field-name="userLogin" map-name="context" session-name="userLogin"/>
       <string-to-field string="URL_RESOURCE" map-name="context" field-name="dataResourceTypeId" />
       <string-to-field string="text/plain" map-name="context" field-name="mimeTypeId" />
@@ -272,8 +268,8 @@
       <string-to-field string="SubContentDataResourceView" field-name="currentEntityName" />
       <field-to-request field-name="currentEntityName" request-name="currentEntityName" />
 
-      <field-to-field map-name="parameters" field-name="contentIdTo" to-map-name="context2" />
-      <field-to-field map-name="parameters" field-name="mapKey" to-map-name="context2" />
+      <set field="context2.contentIdTo" from-field="parameters.contentIdTo" />  
+      <set field="context2.mapKey" from-field="parameters.mapKey" />  
       <if-not-empty map-name="context2" field-name="activeContentId">
         <call-service in-map-name="context2" service-name="deactivateAssocs">
           <result-to-field field-name="deactivateList" result-name="deactivateList"/>
@@ -295,7 +291,7 @@
       -->
     </simple-method>
 
-    <simple-method login-required="true" method-name="updateLayoutUrl">
+    <simple-method login-required="true" method-name="updateLayoutUrl" short-description="Update Layout URL">
       <log level="always" message="in updateLayoutUrl."/>
       <log level="always" message="parameters: ${parameters}"/>
 
@@ -307,9 +303,9 @@
                   processor-name="contentAssocIn" in-map-name="parameters" out-map-name="context" />
 
       <log level="always" message="context: ${context}"/>
-      <field-to-field map-name="context" field-name="contentName" to-field-name="dataResourceName" />
-      <field-to-field map-name="parameters" field-name="contentPurposeTypeId" to-map-name="context" />
-      <field-to-field map-name="parameters" field-name="contentIdTo" to-map-name="context" />
+      <set field="context.dataResourceName" from-field="context.contentName" />  
+      <set field="context.contentPurposeTypeId" from-field="parameters.contentPurposeTypeId" />  
+      <set field="context.contentIdTo" from-field="parameters.contentIdTo" />
       <session-to-field field-name="userLogin" map-name="context" session-name="userLogin"/>
       <call-service in-map-name="context" service-name="persistContentAndAssoc">
           <result-to-field result-name="contentId" field-name="contentId"/>

Modified: incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml?view=diff&rev=467397&r1=467396&r2=467397
==============================================================================
--- incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml (original)
+++ incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml Tue Oct 24 10:34:11 2006
@@ -59,7 +59,7 @@
             </simple-map-processor>
         </call-map-processor>
         <if-not-empty field-name="userLoginId" map-name="userLoginContext">
-            <field-to-field field-name="userLoginId" map-name="userLoginContext" to-map-name="userLoginExistsMap"/>
+            <set field="userLoginExistsMap.userLoginId" from-field="userLoginContext.userLoginId" />
             <find-by-primary-key entity-name="UserLogin" map-name="userLoginExistsMap" value-name="existingUserLogin"/>
             <if-not-empty field-name="existingUserLogin">
                 <string-to-field string="Username in use, please choose another." field-name="tempErrorMessage"/>
@@ -68,9 +68,9 @@
         </if-not-empty>
 
         <make-value entity-name="UserLogin" value-name="newUserLogin"/>
-        <field-to-field field-name="userLoginId" map-name="userLoginContext" to-map-name="newUserLogin"/>
-        <field-to-field field-name="currentPassword" map-name="userLoginContext" to-map-name="newUserLogin"/>
-        <field-to-field field-name="passwordHint" map-name="userLoginContext" to-map-name="newUserLogin"/>
+        <set field="newUserLogin.userLoginId" from-field="userLoginContext.userLoginId" />
+        <set field="newUserLogin.currentPassword" from-field="userLoginContext.currentPassword" />
+        <set field="newUserLogin.passwordHint" from-field="userLoginContext.passwordHint" />
 
         <!-- Check the password, etc for validity -->
         <call-bsh><![CDATA[
@@ -94,7 +94,7 @@
         </call-map-processor>
 
         <!-- Create the PartyRole -->
-        <field-to-field field-name="roleTypeId" map-name="parameters" to-map-name="partyRoleContext"/>
+        <set field="partyRoleContext.roleTypeId" from-field="parameters.roleTypeId" />
 
         <!-- Create the Postal Address -->
         <if-compare field-name="USE_ADDRESS" map-name="parameters" operator="equals" value="false">
@@ -254,7 +254,7 @@
 
         <set-service-fields map-name="personContext" service-name="createPersonAndUserLogin" to-map-name="personUserLoginContext"/>
         <set-service-fields map-name="newUserLogin" service-name="createPersonAndUserLogin" to-map-name="personUserLoginContext"/>
-        <field-to-field field-name="currentPassword" map-name="newUserLogin" to-field-name="currentPasswordVerify" to-map-name="personUserLoginContext"/>
+        <set field="personUserLoginContext.currentPasswordVerify" from-field="newUserLogin.currentPassword" />
         <!-- the above copy is okay since we checked already that they are the same -->
         <call-service service-name="createPersonAndUserLogin" in-map-name="personUserLoginContext">
             <result-to-field result-name="partyId" map-name="tempMap"/>
@@ -263,16 +263,16 @@
         <set-current-user-login value-name="createdUserLogin"/>
 
         <!-- now that we have the partyId, put it where it needs to go... -->
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="partyDataSource"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="userLoginContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="personContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="partyRoleContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="addressContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="homePhoneContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="workPhoneContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="faxPhoneContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="mobilePhoneContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="emailContext"/>
+        <set field="partyDataSource.partyId" from-field="tempMap.partyId" />
+        <set field="userLoginContext.partyId" from-field="tempMap.partyId" />
+        <set field="personContext.partyId" from-field="tempMap.partyId" />
+        <set field="partyRoleContext.partyId" from-field="tempMap.partyId" />
+        <set field="addressContext.partyId" from-field="tempMap.partyId" />
+        <set field="homePhoneContext.partyId" from-field="tempMap.partyId" />
+        <set field="workPhoneContext.partyId" from-field="tempMap.partyId" />        
+        <set field="faxPhoneContext.partyId" from-field="tempMap.partyId" />
+        <set field="mobilePhoneContext.partyId" from-field="tempMap.partyId" />
+        <set field="emailContext.partyId" from-field="tempMap.partyId" />
 
         <create-value value-name="partyDataSource"/>
         <call-service service-name="createPartyRole" in-map-name="partyRoleContext"/>
@@ -284,7 +284,7 @@
                 <call-service service-name="createPartyPostalAddress" in-map-name="addressContext">
                     <result-to-field result-name="contactMechId" map-name="addressPurposeContext"/>
                 </call-service>
-                <field-to-field field-name="partyId" map-name="tempMap" to-map-name="addressPurposeContext"/>
+                <set field="addressPurposeContext.partyId" from-field="tempMap.partyId" />
                 <!-- create the shipping location -->
                 <string-to-field string="SHIPPING_LOCATION" field-name="contactMechPurposeTypeId" map-name="addressPurposeContext"/>
                 <call-service service-name="createPartyContactMechPurpose" in-map-name="addressPurposeContext"/>
@@ -299,7 +299,7 @@
             <call-service service-name="createPartyTelecomNumber" in-map-name="homePhoneContext">
                 <result-to-field result-name="contactMechId" map-name="homePhonePurposeContext"/>
             </call-service>
-            <field-to-field field-name="partyId" map-name="tempMap" to-map-name="homePhonePurposeContext"/>
+            <set field="homePhonePurposeContext.partyId" from-field="tempMap.partyId" />
             <string-to-field string="PHONE_HOME" field-name="contactMechPurposeTypeId" map-name="homePhonePurposeContext"/>
             <call-service service-name="createPartyContactMechPurpose" in-map-name="homePhonePurposeContext"/>
         </if-not-empty>
@@ -309,7 +309,7 @@
             <call-service service-name="createPartyTelecomNumber" in-map-name="workPhoneContext">
                 <result-to-field result-name="contactMechId" map-name="workPhonePurposeContext"/>
             </call-service>
-            <field-to-field field-name="partyId" map-name="tempMap" to-map-name="workPhonePurposeContext"/>
+            <set field="workPhonePurposeContext.partyId" from-field="tempMap.partyId" />
             <string-to-field string="PHONE_WORK" field-name="contactMechPurposeTypeId" map-name="workPhonePurposeContext"/>
             <call-service service-name="createPartyContactMechPurpose" in-map-name="workPhonePurposeContext"/>
         </if-not-empty>
@@ -319,7 +319,7 @@
             <call-service service-name="createPartyTelecomNumber" in-map-name="faxPhoneContext">
                 <result-to-field result-name="contactMechId" map-name="faxPhonePurposeContext"/>
             </call-service>
-            <field-to-field field-name="partyId" map-name="tempMap" to-map-name="faxPhonePurposeContext"/>
+            <set field="faxPhonePurposeContext.partyId" from-field="tempMap.partyId" />
             <string-to-field string="FAX_NUMBER" field-name="contactMechPurposeTypeId" map-name="faxPhonePurposeContext"/>
             <call-service service-name="createPartyContactMechPurpose" in-map-name="faxPhonePurposeContext"/>
         </if-not-empty>
@@ -329,7 +329,7 @@
             <call-service service-name="createPartyTelecomNumber" in-map-name="mobilePhoneContext">
                 <result-to-field result-name="contactMechId" map-name="mobilePhonePurposeContext"/>
             </call-service>
-            <field-to-field field-name="partyId" map-name="tempMap" to-map-name="mobilePhonePurposeContext"/>
+            <set field="mobilePhonePurposeContext.partyId" from-field="tempMap.partyId" />
             <string-to-field string="PHONE_MOBILE" field-name="contactMechPurposeTypeId" map-name="mobilePhonePurposeContext"/>
             <call-service service-name="createPartyContactMechPurpose" in-map-name="mobilePhonePurposeContext"/>
         </if-not-empty>
@@ -338,7 +338,7 @@
         <call-service service-name="createPartyEmailAddress" in-map-name="emailContext">
             <result-to-field result-name="contactMechId" map-name="emailPurposeContext"/>
         </call-service>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="emailPurposeContext"/>
+        <set field="emailPurposeContext.partyId" from-field="tempMap.partyId" />
         <string-to-field string="PRIMARY_EMAIL" field-name="contactMechPurposeTypeId" map-name="emailPurposeContext"/>
         <call-service service-name="createPartyContactMechPurpose" in-map-name="emailPurposeContext"/>
 

Modified: incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml?view=diff&rev=467397&r1=467396&r2=467397
==============================================================================
--- incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml (original)
+++ incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml Tue Oct 24 10:34:11 2006
@@ -42,7 +42,7 @@
         </call-service>
     </simple-method>
     <simple-method method-name="updatePerson" short-description="Update Person">
-        <field-to-field map-name="parameters" field-name="partyId" to-map-name="context"/>
+        <set field="context.partyId" from-field="parameters.partyId" />
         <call-map-processor xml-resource="org/ofbiz/party/party/PartyMapProcs.xml"
                 processor-name="person" in-map-name="parameters" out-map-name="context"/>
         <check-errors/>
@@ -62,7 +62,7 @@
         </call-service>
     </simple-method>
     <simple-method method-name="updatePartyGroup" short-description="Update Party Group">
-        <field-to-field map-name="parameters" field-name="partyId" to-map-name="context"/>
+        <set field="context.partyId" from-field="parameters.partyId" />
         <call-map-processor xml-resource="org/ofbiz/party/party/PartyMapProcs.xml"
                 processor-name="partyGroup" in-map-name="parameters" out-map-name="context"/>
         <check-errors/>

Modified: incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml?view=diff&rev=467397&r1=467396&r2=467397
==============================================================================
--- incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml (original)
+++ incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml Tue Oct 24 10:34:11 2006
@@ -94,7 +94,7 @@
                 </simple-map-processor>
             </call-map-processor>
             <if-not-empty field-name="userLoginId" map-name="userLoginContext">
-                <field-to-field field-name="userLoginId" map-name="userLoginContext" to-map-name="userLoginExistsMap"/>
+                <set field="userLoginExistsMap.userLoginId"  from-field="userLoginContext.userLoginId" />
                 <find-by-primary-key entity-name="UserLogin" map-name="userLoginExistsMap" value-name="existingUserLogin"/>
                 <if-not-empty field-name="existingUserLogin">
                     <string-to-field string="Username in use, please choose another." field-name="tempErrorMessage"/>
@@ -103,9 +103,9 @@
             </if-not-empty>
 
             <make-value entity-name="UserLogin" value-name="newUserLogin"/>
-            <field-to-field field-name="userLoginId" map-name="userLoginContext" to-map-name="newUserLogin"/>
-            <field-to-field field-name="currentPassword" map-name="userLoginContext" to-map-name="newUserLogin"/>
-            <field-to-field field-name="passwordHint" map-name="userLoginContext" to-map-name="newUserLogin"/>
+            <set field="newUserLogin.userLoginId" from-field="userLoginContext.userLoginId"/>
+            <set field="newUserLogin.currentPassword" from-field="userLoginContext.currentPassword" />
+            <set field="newUserLogin.passwordHint" from-field="userLoginContext.passwordHint" />
 
             <!-- Check the password, etc for validity -->
             <call-bsh><![CDATA[
@@ -136,7 +136,7 @@
         </call-map-processor>
 
         <!-- Create the PartyRole -->
-        <field-to-field field-name="roleTypeId" map-name="parameters" to-map-name="partyRoleContext"/>
+        <set field="partyRoleContext.roleTypeId" from-field="parameters.roleTypeId" />
 
         <!-- Create the Postal Address -->
         <if-compare field-name="USE_ADDRESS" map-name="parameters" operator="equals" value="false">
@@ -298,16 +298,16 @@
         </call-service>
 
         <!-- now that we have the partyId, put it where it needs to go... -->
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="partyDataSource"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="userLoginContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="personContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="partyRoleContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="addressContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="homePhoneContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="workPhoneContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="faxPhoneContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="mobilePhoneContext"/>
-        <field-to-field field-name="partyId" map-name="tempMap" to-map-name="emailContext"/>
+        <set field="partyDataSource.partyId" from-field="tempMap.partyId" />
+        <set field="userLoginContext.partyId" from-field="tempMap.partyId" />
+        <set field="personContext.partyId" from-field="tempMap.partyId" />
+        <set field="partyRoleContext.partyId" from-field="tempMap.partyId" />
+        <set field="addressContext.partyId" from-field="tempMap.partyId" />
+        <set field="homePhoneContext.partyId" from-field="tempMap.partyId" />
+        <set field="workPhoneContext.partyId" from-field="tempMap.partyId" />
+        <set field="faxPhoneContext.partyId" from-field="tempMap.partyId" />
+        <set field="mobilePhoneContext.partyId" from-field="tempMap.partyId" />
+        <set field="emailContext.partyId" from-field="tempMap.partyId" />        
 
         <if-not-empty field-name="newUserLogin">
             <!-- If password encryption is enabled, encrpyt it now -->
@@ -317,7 +317,7 @@
             ]]></call-bsh>
 
             <!-- create the UserLogin manually to get around ordering and security constraints in the service -->
-            <field-to-field field-name="partyId" map-name="tempMap" to-map-name="newUserLogin"/>
+            <set field="newUserLogin.partyId" from-field="tempMap.partyId" />
             <create-value value-name="newUserLogin"/>
             <set-current-user-login value-name="newUserLogin"/>
         </if-not-empty>
@@ -332,7 +332,7 @@
                 <call-service service-name="createPartyPostalAddress" in-map-name="addressContext">
                     <result-to-field result-name="contactMechId" map-name="addressPurposeContext"/>
                 </call-service>
-                <field-to-field field-name="partyId" map-name="tempMap" to-map-name="addressPurposeContext"/>
+                <set field="addressPurposeContext.partyId" from-field="tempMap.partyId" />
                 <!-- create the shipping location -->
                 <string-to-field string="SHIPPING_LOCATION" field-name="contactMechPurposeTypeId" map-name="addressPurposeContext"/>
                 <call-service service-name="createPartyContactMechPurpose" in-map-name="addressPurposeContext"/>
@@ -347,7 +347,7 @@
             <call-service service-name="createPartyTelecomNumber" in-map-name="homePhoneContext">
                 <result-to-field result-name="contactMechId" map-name="homePhonePurposeContext"/>
             </call-service>
-            <field-to-field field-name="partyId" map-name="tempMap" to-map-name="homePhonePurposeContext"/>
+            <set field="homePhonePurposeContext.partyId" from-field="tempMap.partyId" />
             <string-to-field string="PHONE_HOME" field-name="contactMechPurposeTypeId" map-name="homePhonePurposeContext"/>
             <call-service service-name="createPartyContactMechPurpose" in-map-name="homePhonePurposeContext"/>
         </if-not-empty>
@@ -357,7 +357,7 @@
             <call-service service-name="createPartyTelecomNumber" in-map-name="workPhoneContext">
                 <result-to-field result-name="contactMechId" map-name="workPhonePurposeContext"/>
             </call-service>
-            <field-to-field field-name="partyId" map-name="tempMap" to-map-name="workPhonePurposeContext"/>
+            <set field="workPhonePurposeContext.partyId" from-field="tempMap.partyId" />
             <string-to-field string="PHONE_WORK" field-name="contactMechPurposeTypeId" map-name="workPhonePurposeContext"/>
             <call-service service-name="createPartyContactMechPurpose" in-map-name="workPhonePurposeContext"/>
         </if-not-empty>
@@ -367,7 +367,7 @@
             <call-service service-name="createPartyTelecomNumber" in-map-name="faxPhoneContext">
                 <result-to-field result-name="contactMechId" map-name="faxPhonePurposeContext"/>
             </call-service>
-            <field-to-field field-name="partyId" map-name="tempMap" to-map-name="faxPhonePurposeContext"/>
+            <set field="faxPhonePurposeContext.partyId" from-field="tempMap.partyId" />
             <string-to-field string="FAX_NUMBER" field-name="contactMechPurposeTypeId" map-name="faxPhonePurposeContext"/>
             <call-service service-name="createPartyContactMechPurpose" in-map-name="faxPhonePurposeContext"/>
         </if-not-empty>
@@ -377,7 +377,7 @@
             <call-service service-name="createPartyTelecomNumber" in-map-name="mobilePhoneContext">
                 <result-to-field result-name="contactMechId" map-name="mobilePhonePurposeContext"/>
             </call-service>
-            <field-to-field field-name="partyId" map-name="tempMap" to-map-name="mobilePhonePurposeContext"/>
+            <set field="mobilePhonePurposeContext.partyId" from-field="tempMap.partyId" />
             <string-to-field string="PHONE_MOBILE" field-name="contactMechPurposeTypeId" map-name="mobilePhonePurposeContext"/>
             <call-service service-name="createPartyContactMechPurpose" in-map-name="mobilePhonePurposeContext"/>
         </if-not-empty>
@@ -387,7 +387,7 @@
             <call-service service-name="createPartyEmailAddress" in-map-name="emailContext">
                 <result-to-field result-name="contactMechId" map-name="emailPurposeContext"/>
             </call-service>
-            <field-to-field field-name="partyId" map-name="tempMap" to-map-name="emailPurposeContext"/>
+            <set field="emailPurposeContext.partyId" from-field="tempMap.partyId" />
             <string-to-field string="PRIMARY_EMAIL" field-name="contactMechPurposeTypeId" map-name="emailPurposeContext"/>
             <call-service service-name="createPartyContactMechPurpose" in-map-name="emailPurposeContext"/>
         </if-not-empty>

Modified: incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryIssueServices.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryIssueServices.xml?view=diff&rev=467397&r1=467396&r2=467397
==============================================================================
--- incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryIssueServices.xml (original)
+++ incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryIssueServices.xml Tue Oct 24 10:34:11 2006
@@ -122,9 +122,9 @@
             <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="orderId" map-name="parameters" to-map-name="issuanceCreateMap"/>
-                    <field-to-field field-name="orderItemSeqId" map-name="parameters" to-map-name="issuanceCreateMap"/>
-                    <field-to-field field-name="inventoryItemId" map-name="lastNonSerInventoryItem" to-map-name="issuanceCreateMap"/>
+                    <set field="issuanceCreateMap.orderId" from-field="parameters.orderId" />
+                    <set field="issuanceCreateMap.orderItemSeqId" from-field="parameters.orderItemSeqId" />
+                    <set field="issuanceCreateMap.inventoryItemId" from-field="lastNonSerInventoryItem.inventoryItemId" />
                     <env-to-env env-name="parameters.quantityNotIssued" to-env-name="issuanceCreateMap.quantity"/>
                     <call-service service-name="createItemIssuance" in-map-name="issuanceCreateMap">
                         <result-to-field result-name="itemIssuanceId"/>
@@ -158,8 +158,8 @@
                     </call-service>
 
                     <!-- create ItemIssuance record -->
-                    <field-to-field field-name="orderId" map-name="parameters" to-map-name="issuanceCreateMap"/>
-                    <field-to-field field-name="orderItemSeqId" map-name="parameters" to-map-name="issuanceCreateMap"/>
+                    <set field="issuanceCreateMap.orderId" from-field="parameters.orderId" />
+                    <set field="issuanceCreateMap.orderItemSeqId" from-field="parameters.orderItemSeqId" />
                     <set field="issuanceCreateMap.inventoryItemId" from-field="createInvItemOutMap.inventoryItemId"/>
                     <env-to-env env-name="parameters.quantityNotIssued" to-env-name="issuanceCreateMap.quantity"/>
                     <call-service service-name="createItemIssuance" in-map-name="issuanceCreateMap">
@@ -198,9 +198,9 @@
                     <store-value value-name="inventoryItem"/>
 
                     <!-- create ItemIssuance record -->
-                    <field-to-field field-name="orderId" map-name="parameters" to-map-name="issuanceCreateMap"/>
-                    <field-to-field field-name="orderItemSeqId" map-name="parameters" to-map-name="issuanceCreateMap"/>
-                    <field-to-field field-name="inventoryItemId" map-name="inventoryItem" to-map-name="issuanceCreateMap"/>
+                    <set field="issuanceCreateMap.orderId" from-field="parameters.orderId"/>
+                    <set field="issuanceCreateMap.orderItemSeqId" from-field="parameters.orderItemSeqId"/>                    
+                    <set field="issuanceCreateMap.inventoryItemId" from-field="inventoryItem.inventoryItemId"/>                    
                     <calculate field-name="quantity" map-name="issuanceCreateMap"><number value="1"/></calculate>
                     <call-service service-name="createItemIssuance" in-map-name="issuanceCreateMap"/>
                     <clear-field field-name="issuanceCreateMap"/>
@@ -215,17 +215,17 @@
                     <!-- 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 field="parameters.deductAmount" from-field="inventoryItem.availableToPromiseTotal" />
                         <else>
-                            <field-to-field field-name="quantityNotIssued" map-name="parameters" to-field-name="deductAmount" to-map-name="parameters"/>
+                            <set field="parameters.deductAmount" from-field="parameters.quantityNotIssued" />
                         </else>
                         </if-compare-field>
                         
                         <!-- create ItemIssuance record -->
-                        <field-to-field field-name="orderId" map-name="parameters" to-map-name="issuanceCreateMap"/>
-                        <field-to-field field-name="orderItemSeqId" 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 field="issuanceCreateMap.orderId" from-field="parameters.orderId" />
+                        <set field="issuanceCreateMap.orderItemSeqId" from-field="parameters.orderItemSeqId" />
+                        <set field="issuanceCreateMap.inventoryItemId" from-field="inventoryItem.inventoryItemId" />                                                
+                        <set field="issuanceCreateMap.quantity" from-field="parameters.deductAmount" />                                                                        
                         <call-service service-name="createItemIssuance" in-map-name="issuanceCreateMap">
                             <result-to-field result-name="itemIssuanceId"/>
                         </call-service>

Modified: incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/price/PriceServices.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/price/PriceServices.xml?view=diff&rev=467397&r1=467396&r2=467397
==============================================================================
--- incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/price/PriceServices.xml (original)
+++ incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/price/PriceServices.xml Tue Oct 24 10:34:11 2006
@@ -39,8 +39,8 @@
 
         <env-to-field env-name="nowTimestamp" field-name="lastModifiedDate" map-name="newEntity"/>
         <env-to-field env-name="nowTimestamp" field-name="createdDate" map-name="newEntity"/>
-        <field-to-field field-name="userLoginId" map-name="userLogin" to-field-name="lastModifiedByUserLogin" to-map-name="newEntity"/>
-        <field-to-field field-name="userLoginId" map-name="userLogin" to-field-name="createdByUserLogin" to-map-name="newEntity"/>
+        <set field="newEntity.lastModifiedByUserLogin" from-field="userLogin.userLoginId" />
+        <set field="newEntity.createdByUserLogin" from-field="userLogin.userLoginId" />
 
         <create-value value-name="newEntity"/>
     </simple-method>
@@ -60,7 +60,7 @@
 
         <now-timestamp-to-env env-name="nowTimestamp"/>
         <env-to-field env-name="nowTimestamp" field-name="lastModifiedDate" map-name="lookedUpValue"/>
-        <field-to-field field-name="userLoginId" map-name="userLogin" to-field-name="lastModifiedByUserLogin" to-map-name="lookedUpValue"/>
+        <set field="lookedUpValue.lastModifiedByUserLogin" from-field="userLogin.userLoginId" />
 
         <store-value value-name="lookedUpValue"/>
     </simple-method>
@@ -101,7 +101,7 @@
 
         <now-timestamp-to-env env-name="nowTimestamp"/>
         <env-to-field env-name="nowTimestamp" field-name="changedDate" map-name="newEntity"/>
-        <field-to-field field-name="userLoginId" map-name="userLogin" to-field-name="changedByUserLogin" to-map-name="newEntity"/>
+        <set field="newEntity.changedByUserLogin" from-field="userLogin.userLoginId" />
 
         <create-value value-name="newEntity"/>
     </simple-method>

Modified: incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/storage/FacilityContactMechServices.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/storage/FacilityContactMechServices.xml?view=diff&rev=467397&r1=467396&r2=467397
==============================================================================
--- incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/storage/FacilityContactMechServices.xml (original)
+++ incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/storage/FacilityContactMechServices.xml Tue Oct 24 10:34:11 2006
@@ -34,12 +34,12 @@
             </call-service>
             <log level="info" message="ContactMech created"/>
             <else>
-                <field-to-field field-name="contactMechId" map-name="parameters" to-map-name="newValue"/>
+                <set field="newValue.contactMechId" from-field="parameters.contactMechId" />
             </else>
         </if-empty>
 
         <log level="info" message="Creating a FacilityContactMech"/>
-        <field-to-field field-name="facilityId" map-name="parameters" to-map-name="newValue"/>
+        <set field="newValue.facilityId" from-field="parameters.facilityId" />
         <field-to-result field-name="contactMechId" map-name="newValue"/>
         <field-to-request field-name="contactMechId" map-name="newValue"/>
         <set-nonpk-fields map-name="parameters" value-name="newValue"/>
@@ -80,7 +80,7 @@
                 <result-to-field result-name="contactMechId" map-name="newFacilityContactMech"/>
             </call-service>
             <else>
-                <field-to-field map-name="parameters" to-map-name="newFacilityContactMech" field-name="newContactMechId" to-field-name="contactMechId"/>
+                <set field="newFacilityContactMech.contactMechId" from-field="parameters.newContactMechId" />
                 <log level="info" message="Using supplied new contact mech id: ${newFacilityContactMech.contactMechId}"/>
             </else>
         </if-empty>
@@ -94,7 +94,7 @@
         <if-compare-field field-name="contactMechId" map-name="parameters" to-map-name="newFacilityContactMech" operator="not-equals">
             <get-related value-name="facilityContactMech" relation-name="FacilityContactMechPurpose" list-name="facilityContactMechPurposes"/>  
             <iterate entry-name="facilityContactMechPurpose" list-name="facilityContactMechPurposes">
-                <field-to-field field-name="contactMechId" map-name="newFacilityContactMech" to-map-name="facilityContactMechPurpose"/>
+                <set field="facilityContactMechPurpose.contactMechId" from-field="newFacilityContactMech.contactMechId" />
                 <field-to-list field-name="facilityContactMechPurpose" list-name="storeList"/>
             </iterate>
         </if-compare-field>
@@ -139,7 +139,7 @@
         <log level="info" message="ContactMech for postal address was ${newFacilityContactMech.contactMechId}, now creating facility contact mech"/>
         <call-map-processor xml-resource="org/ofbiz/product/storage/FacilityContactMechMapProcs.xml"
                 processor-name="facilityContactMech" in-map-name="parameters" out-map-name="context2"/>  
-        <field-to-field field-name="contactMechId" map-name="newFacilityContactMech" to-map-name="context2"/>
+        <set field="context2.contactMechId" from-field="newFacilityContactMech.contactMechId" />
         <log level="info" message="Copied id to context2: ${context2.contactMechId}"/>
         <call-service in-map-name="context2" break-on-error="true" service-name="createFacilityContactMech">
             <default-message>Facility Contact Mechanism successfully created</default-message>      
@@ -163,7 +163,7 @@
         </call-service>
         <call-map-processor xml-resource="org/ofbiz/product/storage/FacilityContactMechMapProcs.xml"
                 processor-name="updateFacilityContactMech" in-map-name="parameters" out-map-name="context2"/>  
-        <field-to-field map-name="newFacilityContactMech" field-name="contactMechId"  to-map-name="context2" to-field-name="newContactMechId"/>
+        <set field="context2.newContactMechId" from-field="newFacilityContactMech.contactMechId" />
         <string-to-field map-name="context2" field-name="contactMechTypeId" string="POSTAL_ADDRESS"/>
         <log level="info" message="Copied id to context2: ${context2.newContactMechId}"/>
         <call-service in-map-name="context2" service-name="updateFacilityContactMech">
@@ -187,7 +187,7 @@
         </call-service>
         <call-m