Author: jacopoc
Date: Thu Oct 26 22:19:25 2006 New Revision: 468277 URL: http://svn.apache.org/viewvc?view=rev&rev=468277 Log: Applied patch from Ashish Vijaywargiya (OFBIZ-402) to convert deprecated string-to-field operations to the set operation. Modified: 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/marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml incubator/ofbiz/trunk/applications/marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/customer/CustomerEvents.xml incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/user/UserEvents.xml incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/config/ConfigServices.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 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=468277&r1=468276&r2=468277 ============================================================================== --- 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 Thu Oct 26 22:19:25 2006 @@ -525,7 +525,7 @@ <set-nonpk-fields map-name="parameters" value-name="newEntity"/> <set-pk-fields map-name="parameters" value-name="newEntity"/> <if-empty field-name="dataResourceId" map-name="newEntity"> - <string-to-field string="OTHER_OBJECT" field-name="dataResourceTypeId" map-name="serviceCtx"/> + <set field="serviceCtx.dataResourceTypeId" value="OTHER_OBJECT"/> <call-service service-name="createDataResource" in-map-name="serviceCtx"> <result-to-field result-name="dataResourceId" map-name="newEntity"/> </call-service> 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=468277&r1=468276&r2=468277 ============================================================================== --- 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 Thu Oct 26 22:19:25 2006 @@ -30,7 +30,7 @@ <env-to-field env-name="targetOperationList" map-name="context" field-name="targetOperationList" /> <session-to-field field-name="userLogin" map-name="context" session-name="userLogin"/> <set field="context.objectInfo" from-field="parameters.drObjectInfo" /> - <string-to-field string="LOCAL_FILE" map-name="context" field-name="dataResourceTypeId" /> + <set field="context.dataResourceTypeId" value="LOCAL_FILE" /> <call-service in-map-name="context" service-name="persistContentAndAssoc"> <result-to-field field-name="contentId" result-name="contentId"/> <result-to-field field-name="dataResourceId" result-name="dataResourceId"/> @@ -101,10 +101,10 @@ <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" /> - <string-to-field string="SUB_CONTENT" map-name="context" field-name="contentAssocTypeId" /> - <string-to-field string="DOCUMENT" map-name="context" field-name="contentTypeId" /> + <set field="context.dataResourceTypeId" value="ELECTRONIC_TEXT" /> + <set field="context.mimeTypeId" value="text/plain" /> + <set field="context.contentAssocTypeId" value="SUB_CONTENT" /> + <set field="context.contentTypeId" value="DOCUMENT" /> <call-service in-map-name="context" service-name="persistContentAndAssoc"> <result-to-field map-name="context2" field-name="activeContentId" result-name="contentId"/> <result-to-field field-name="dataResourceId" result-name="dataResourceId"/> @@ -114,7 +114,7 @@ <check-errors/> <field-to-request map-name="context2" field-name="activeContentId" request-name="contentId" /> <field-to-request field-name="dataResourceId" request-name="drDataResourceId" /> - <string-to-field string="SubContentDataResourceView" field-name="currentEntityName" /> + <set field="currentEntityName" value="SubContentDataResourceView" /> <field-to-request field-name="currentEntityName" request-name="currentEntityName" /> <set field="context2.contentIdTo" from-field="parameters.contentIdTo" /> @@ -196,10 +196,10 @@ <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" /> - <string-to-field string="SUB_CONTENT" map-name="context" field-name="contentAssocTypeId" /> - <string-to-field string="DOCUMENT" map-name="context" field-name="contentTypeId" /> + <set field="context.dataResourceTypeId" value="IMAGE_OBJECT" /> + <set field="context.mimeTypeId" value="text/plain" /> + <set field="context.contentAssocTypeId" value="SUB_CONTENT" /> + <set field="context.contentTypeId" value="DOCUMENT" /> <call-service in-map-name="context" service-name="persistContentAndAssoc"> <result-to-field map-name="context2" field-name="activeContentId" result-name="contentId"/> <result-to-field field-name="dataResourceId" result-name="dataResourceId"/> @@ -210,7 +210,7 @@ <field-to-request map-name="context2" field-name="activeContentId" request-name="contentId" /> <field-to-request field-name="dataResourceId" request-name="drDataResourceId" /> - <string-to-field string="SubContentDataResourceView" field-name="currentEntityName" /> + <set field="currentEntityName" value="SubContentDataResourceView" /> <field-to-request field-name="currentEntityName" request-name="currentEntityName" /> <set field="context2.contentIdTo" from-field="formInput.contentIdTo" /> @@ -252,10 +252,10 @@ <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" /> - <string-to-field string="SUB_CONTENT" map-name="context" field-name="contentAssocTypeId" /> - <string-to-field string="DOCUMENT" map-name="context" field-name="contentTypeId" /> + <set field="context.dataResourceTypeId" value="URL_RESOURCE" /> + <set field="context.mimeTypeId" value="text/plain" /> + <set field="context.contentAssocTypeId" value="SUB_CONTENT" /> + <set field="context.contentTypeId" value="DOCUMENT" /> <call-service in-map-name="context" service-name="persistContentAndAssoc"> <result-to-field map-name="context2" field-name="activeContentId" result-name="contentId"/> <result-to-field field-name="dataResourceId" result-name="dataResourceId"/> @@ -265,7 +265,7 @@ <check-errors/> <field-to-request map-name="context2" field-name="activeContentId" request-name="contentId" /> <field-to-request field-name="dataResourceId" request-name="drDataResourceId" /> - <string-to-field string="SubContentDataResourceView" field-name="currentEntityName" /> + <set field="currentEntityName" value="SubContentDataResourceView" /> <field-to-request field-name="currentEntityName" request-name="currentEntityName" /> <set field="context2.contentIdTo" from-field="parameters.contentIdTo" /> Modified: incubator/ofbiz/trunk/applications/marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml?view=diff&rev=468277&r1=468276&r2=468277 ============================================================================== --- incubator/ofbiz/trunk/applications/marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml (original) +++ incubator/ofbiz/trunk/applications/marketing/script/org/ofbiz/marketing/contact/ContactListServices.xml Thu Oct 26 22:19:25 2006 @@ -78,7 +78,7 @@ </and> </condition> <then> - <string-to-field string="CLPT_ACCEPTED" field-name="parameters.statusId"/> + <set field="parameters.statusId" value="CLPT_ACCEPTED" /> </then> </if> </simple-method> Modified: incubator/ofbiz/trunk/applications/marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml?view=diff&rev=468277&r1=468276&r2=468277 ============================================================================== --- incubator/ofbiz/trunk/applications/marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml (original) +++ incubator/ofbiz/trunk/applications/marketing/script/org/ofbiz/marketing/segment/SegmentServices.xml Thu Oct 26 22:19:25 2006 @@ -132,14 +132,14 @@ OR SegmentGroup -> SegmentGroupClassification -> PartyClassificationGroup -> PartyClassification -> Party --> - <string-to-field string="_VIEW" field-name="securityAction"/> + <set field="securityAction" value="_VIEW" /> <check-permission permission="MARKETING" action="${securityAction}"><fail-message message="Security Error\: to run ${methodShortDescription} you must have the MARKETING${securityAction} or MARKETING_ADMIN permission"/></check-permission> <check-errors/> </simple-method> <simple-method method-name="findSegmentGroupsOfParty" short-description="Find SegmentGroups Of a Party (that a Party is In)"> <!-- Follows same path as findPartiesInSegmentGroup, but in reverse... --> - <string-to-field string="_VIEW" field-name="securityAction"/> + <set field="securityAction" value="_VIEW" /> <check-permission permission="MARKETING" action="${securityAction}"><fail-message message="Security Error\: to run ${methodShortDescription} you must have the MARKETING${securityAction} or MARKETING_ADMIN permission"/></check-permission> <check-errors/> @@ -154,7 +154,7 @@ OR Party -> SegmentGroupRole -> SegmentGroup -> SegmentGroupClassification -> PartyClassificationGroup -> PartyClassification -> Party --> - <string-to-field string="_VIEW" field-name="securityAction"/> + <set field="securityAction" value="_VIEW" /> <check-permission permission="MARKETING" action="${securityAction}"><fail-message message="Security Error\: to run ${methodShortDescription} you must have the MARKETING${securityAction} or MARKETING_ADMIN permission"/></check-permission> <check-errors/> @@ -189,11 +189,11 @@ </and> </condition> <then> - <string-to-field string="N" field-name="areRelated"/> + <set field="areRelated" value="N" /> <field-to-result field-name="areRelated"/> </then> <else> - <string-to-field string="Y" field-name="areRelated"/> + <set field="areRelated" value="Y"/> <field-to-result field-name="areRelated"/> </else> </if> 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=468277&r1=468276&r2=468277 ============================================================================== --- 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 Thu Oct 26 22:19:25 2006 @@ -19,21 +19,21 @@ <simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd"> <simple-method method-name="createCustomer" short-description="Create Customer" login-required="false"> - <string-to-field field-name="require_email" string="false"/> - <string-to-field field-name="require_phone" string="false"/> - <string-to-field field-name="create_allow_password" string="false"/> - <string-to-field field-name="default_customer_password" string="ungssblepsswd"/> + <set field="require_email" value="false" /> + <set field="require_phone" value="false" /> + <set field="create_allow_password" value="false" /> + <set field="default_customer_password" value="ungssblepsswd" /> <property-to-field resource="security" property="username.lowercase" default="false" field-name="username_lowercase"/> <property-to-field resource="security" property="password.lowercase" default="false" field-name="password_lowercase"/> <now-timestamp-to-env env-name="nowStamp"/> - <string-to-field string="CUSTOMER" field-name="roleTypeId" map-name="parameters"/> + <set field="parameters.roleTypeId" value="CUSTOMER" /> <if-compare field-name="create_allow_password" operator="not-equals" value="true"> <env-to-field env-name="default_customer_password" field-name="PASSWORD" map-name="parameters"/> <env-to-field env-name="default_customer_password" field-name="CONFIRM_PASSWORD" map-name="parameters"/> - <string-to-field string="No hint set, accout not yet enabled" field-name="PASSWORD_HINT" map-name="parameters"/> + <set field="parameters.PASSWORD_HINT" value="No hint set, accout not yet enabled" /> </if-compare> <!-- if username and/or password should be lowercased, do that now --> @@ -62,7 +62,7 @@ <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"/> + <set field="tempErrorMessage" value="Username in use, please choose another." /> <field-to-list field-name="tempErrorMessage" list-name="error_list"/> </if-not-empty> </if-not-empty> @@ -120,13 +120,13 @@ </call-map-processor> <if-compare value="USA" operator="equals" field-name="CUSTOMER_COUNTRY" map-name="parameters"> <if-empty field-name="CUSTOMER_STATE" map-name="parameters"> - <string-to-field string="State is missing, and is required for an address in the United States." field-name="tempErrorMessage"/> + <set field="tempErrorMessage" value="State is missing, and is required for an address in the United States." /> <field-to-list field-name="tempErrorMessage" list-name="error_list"/> </if-empty> </if-compare> <if-compare value="CAN" operator="equals" field-name="CUSTOMER_COUNTRY" map-name="parameters"> <if-empty field-name="CUSTOMER_STATE" map-name="parameters"> - <string-to-field string="State is missing, and is required for an address in Canada." field-name="tempErrorMessage"/> + <set field="tempErrorMessage" value="State is missing, and is required for an address in Canada." /> <field-to-list field-name="tempErrorMessage" list-name="error_list"/> </if-empty> </if-compare> @@ -241,9 +241,9 @@ <!-- create the PartyDataSource entry to track where this info came from... --> <make-value entity-name="PartyDataSource" value-name="partyDataSource"/> - <string-to-field string="ECOMMERCE_SITE" field-name="dataSourceId" map-name="partyDataSource"/> + <set field="partyDataSource.dataSourceId" value="ECOMMERCE_SITE" /> <env-to-field env-name="nowStamp" field-name="fromDate" map-name="partyDataSource"/> - <string-to-field string="Y" field-name="isCreate" map-name="partyDataSource"/> + <set field="partyDataSource.isCreate" value="Y" /> <!-- get the visit from the session to get the visitId --> <session-to-field field-name="visit"/> <set from-field="visit.visitId" field="partyDataSource.visitId"/> @@ -286,10 +286,10 @@ </call-service> <set field="addressPurposeContext.partyId" from-field="tempMap.partyId" /> <!-- create the shipping location --> - <string-to-field string="SHIPPING_LOCATION" field-name="contactMechPurposeTypeId" map-name="addressPurposeContext"/> + <set field="addressPurposeContext.contactMechPurposeTypeId" value="SHIPPING_LOCATION" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="addressPurposeContext"/> <!-- also consider this address the general correspondence address --> - <string-to-field string="GENERAL_LOCATION" field-name="contactMechPurposeTypeId" map-name="addressPurposeContext"/> + <set field="addressPurposeContext.contactMechPurposeTypeId" value="GENERAL_LOCATION" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="addressPurposeContext"/> </else> </if-compare> @@ -300,7 +300,7 @@ <result-to-field result-name="contactMechId" map-name="homePhonePurposeContext"/> </call-service> <set field="homePhonePurposeContext.partyId" from-field="tempMap.partyId" /> - <string-to-field string="PHONE_HOME" field-name="contactMechPurposeTypeId" map-name="homePhonePurposeContext"/> + <set field="homePhonePurposeContext.contactMechPurposeTypeId" value="PHONE_HOME" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="homePhonePurposeContext"/> </if-not-empty> @@ -310,7 +310,7 @@ <result-to-field result-name="contactMechId" map-name="workPhonePurposeContext"/> </call-service> <set field="workPhonePurposeContext.partyId" from-field="tempMap.partyId" /> - <string-to-field string="PHONE_WORK" field-name="contactMechPurposeTypeId" map-name="workPhonePurposeContext"/> + <set field="workPhonePurposeContext.contactMechPurposeTypeId" value="PHONE_WORK" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="workPhonePurposeContext"/> </if-not-empty> @@ -320,7 +320,7 @@ <result-to-field result-name="contactMechId" map-name="faxPhonePurposeContext"/> </call-service> <set field="faxPhonePurposeContext.partyId" from-field="tempMap.partyId" /> - <string-to-field string="FAX_NUMBER" field-name="contactMechPurposeTypeId" map-name="faxPhonePurposeContext"/> + <set field="faxPhonePurposeContext.contactMechPurposeTypeId" value="FAX_NUMBER" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="faxPhonePurposeContext"/> </if-not-empty> @@ -330,7 +330,7 @@ <result-to-field result-name="contactMechId" map-name="mobilePhonePurposeContext"/> </call-service> <set field="mobilePhonePurposeContext.partyId" from-field="tempMap.partyId" /> - <string-to-field string="PHONE_MOBILE" field-name="contactMechPurposeTypeId" map-name="mobilePhonePurposeContext"/> + <set field="mobilePhonePurposeContext.contactMechPurposeTypeId" value="PHONE_MOBILE" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="mobilePhonePurposeContext"/> </if-not-empty> @@ -339,7 +339,7 @@ <result-to-field result-name="contactMechId" map-name="emailPurposeContext"/> </call-service> <set field="emailPurposeContext.partyId" from-field="tempMap.partyId" /> - <string-to-field string="PRIMARY_EMAIL" field-name="contactMechPurposeTypeId" map-name="emailPurposeContext"/> + <set field="emailPurposeContext.contactMechPurposeTypeId" value="PRIMARY_EMAIL" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="emailPurposeContext"/> <!-- set the partyId in the request --> 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=468277&r1=468276&r2=468277 ============================================================================== --- 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 Thu Oct 26 22:19:25 2006 @@ -19,55 +19,54 @@ <simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd"> <simple-method method-name="createCustomer" short-description="Create Customer" login-required="false"> - <string-to-field field-name="require_email" string="true"/> - <string-to-field field-name="require_phone" string="false"/> - <string-to-field field-name="require_login" string="true"/> - + <set field="require_email" value="true" /> + <set field="require_phone" value="false" /> + <set field="require_login" value="true" /> <!-- this parameter must be set to true or the createUser method below will use a default password instead of the one entered by user --> - <string-to-field field-name="create_allow_password" string="true"/> + <set field="create_allow_password" value="true" /> - <string-to-field string="CUSTOMER" field-name="roleTypeId" map-name="parameters"/> + <set field="parameters.roleTypeId" value="CUSTOMER" /> <call-simple-method method-name="createUser"/> </simple-method> <simple-method method-name="createProspect" short-description="Create Prospect" login-required="false"> - <string-to-field field-name="require_email" string="true"/> - <string-to-field field-name="require_phone" string="false"/> - <string-to-field field-name="require_login" string="false"/> - <string-to-field field-name="create_allow_password" string="true"/> + <set field="require_email" value="true" /> + <set field="require_phone" value="false" /> + <set field="require_login" value="false" /> + <set field="create_allow_password" value="true" /> <property-to-field resource="security" property="username.lowercase" default="false" field-name="username_lowercase"/> <property-to-field resource="security" property="password.lowercase" default="false" field-name="password_lowercase"/> <now-timestamp-to-env env-name="nowStamp"/> - <string-to-field string="PROSPECT" field-name="roleTypeId" map-name="parameters"/> + <set field="parameters.roleTypeId" value="PROSPECT" /> <call-simple-method method-name="createUser"/> </simple-method> <simple-method method-name="createEmployee" short-description="Create Employee" login-required="false"> - <string-to-field field-name="require_email" string="false"/> - <string-to-field field-name="require_phone" string="true"/> - <string-to-field field-name="require_login" string="true"/> - <string-to-field field-name="create_allow_password" string="true"/> + <set field="require_email" value="false" /> + <set field="require_phone" value="true" /> + <set field="require_login" value="true" /> + <set field="create_allow_password" value="true" /> <property-to-field resource="security" property="username.lowercase" default="false" field-name="username_lowercase"/> <property-to-field resource="security" property="password.lowercase" default="false" field-name="password_lowercase"/> <now-timestamp-to-env env-name="nowStamp"/> - <string-to-field string="EMPLOYEE" field-name="roleTypeId" map-name="parameters"/> + <set field="parameters.roleTypeId" value="EMPLOYEE" /> <call-simple-method method-name="createUser"/> </simple-method> <simple-method method-name="createUser" short-description="Create User" login-required="false"> <property-to-field resource="security" property="username.lowercase" default="false" field-name="username_lowercase"/> <property-to-field resource="security" property="password.lowercase" default="false" field-name="password_lowercase"/> - <string-to-field field-name="default_user_password" string="ungssblepsswd"/> + <set field="default_user_password" value="ungssblepsswd" /> <now-timestamp-to-env env-name="nowStamp"/> <if-compare field-name="create_allow_password" operator="not-equals" value="true"> <env-to-field env-name="default_user_password" field-name="PASSWORD" map-name="parameters"/> <env-to-field env-name="default_user_password" field-name="CONFIRM_PASSWORD" map-name="parameters"/> - <string-to-field string="No hint set, accout not yet enabled" field-name="PASSWORD_HINT" map-name="parameters"/> + <set field="parameters.PASSWORD_HINT" value="No hint set, accout not yet enabled" /> </if-compare> <!-- if username and/or password should be lowercased, do that now --> @@ -97,7 +96,7 @@ <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"/> + <set field="tempErrorMessage" value="Username in use, please choose another." /> <field-to-list field-name="tempErrorMessage" list-name="error_list"/> </if-not-empty> </if-not-empty> @@ -162,13 +161,13 @@ </call-map-processor> <if-compare value="USA" operator="equals" field-name="USER_COUNTRY" map-name="parameters"> <if-empty field-name="USER_STATE" map-name="parameters"> - <string-to-field string="State is missing, and is required for an address in the United States." field-name="tempErrorMessage"/> + <set field="tempErrorMessage" value="State is missing, and is required for an address in the United States." /> <field-to-list field-name="tempErrorMessage" list-name="error_list"/> </if-empty> </if-compare> <if-compare value="CAN" operator="equals" field-name="USER_COUNTRY" map-name="parameters"> <if-empty field-name="USER_STATE" map-name="parameters"> - <string-to-field string="State is missing, and is required for an address in Canada." field-name="tempErrorMessage"/> + <set field="tempErrorMessage" value="State is missing, and is required for an address in Canada." /> <field-to-list field-name="tempErrorMessage" list-name="error_list"/> </if-empty> </if-compare> @@ -283,9 +282,9 @@ <!-- create the PartyDataSource entry to track where this info came from... --> <make-value entity-name="PartyDataSource" value-name="partyDataSource"/> - <string-to-field string="ECOMMERCE_SITE" field-name="dataSourceId" map-name="partyDataSource"/> + <set field="partyDataSource.dataSourceId" value="ECOMMERCE_SITE" /> <env-to-field env-name="nowStamp" field-name="fromDate" map-name="partyDataSource"/> - <string-to-field string="Y" field-name="isCreate" map-name="partyDataSource"/> + <set field="partyDataSource.isCreate" value="Y" /> <!-- get the visit from the session to get the visitId --> <session-to-field field-name="visit"/> <set from-field="visit.visitId" field="partyDataSource.visitId"/> @@ -334,10 +333,10 @@ </call-service> <set field="addressPurposeContext.partyId" from-field="tempMap.partyId" /> <!-- create the shipping location --> - <string-to-field string="SHIPPING_LOCATION" field-name="contactMechPurposeTypeId" map-name="addressPurposeContext"/> + <set field="addressPurposeContext.contactMechPurposeTypeId" value="SHIPPING_LOCATION" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="addressPurposeContext"/> <!-- also consider this address the general correspondence address --> - <string-to-field string="GENERAL_LOCATION" field-name="contactMechPurposeTypeId" map-name="addressPurposeContext"/> + <set field="addressPurposeContext.contactMechPurposeTypeId" value="GENERAL_LOCATION" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="addressPurposeContext"/> </else> </if-compare> @@ -348,7 +347,7 @@ <result-to-field result-name="contactMechId" map-name="homePhonePurposeContext"/> </call-service> <set field="homePhonePurposeContext.partyId" from-field="tempMap.partyId" /> - <string-to-field string="PHONE_HOME" field-name="contactMechPurposeTypeId" map-name="homePhonePurposeContext"/> + <set field="homePhonePurposeContext.contactMechPurposeTypeId" value="PHONE_HOME" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="homePhonePurposeContext"/> </if-not-empty> @@ -358,7 +357,7 @@ <result-to-field result-name="contactMechId" map-name="workPhonePurposeContext"/> </call-service> <set field="workPhonePurposeContext.partyId" from-field="tempMap.partyId" /> - <string-to-field string="PHONE_WORK" field-name="contactMechPurposeTypeId" map-name="workPhonePurposeContext"/> + <set field="workPhonePurposeContext.contactMechPurposeTypeId" value="PHONE_WORK" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="workPhonePurposeContext"/> </if-not-empty> @@ -368,7 +367,7 @@ <result-to-field result-name="contactMechId" map-name="faxPhonePurposeContext"/> </call-service> <set field="faxPhonePurposeContext.partyId" from-field="tempMap.partyId" /> - <string-to-field string="FAX_NUMBER" field-name="contactMechPurposeTypeId" map-name="faxPhonePurposeContext"/> + <set field="faxPhonePurposeContext.contactMechPurposeTypeId" value="FAX_NUMBER" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="faxPhonePurposeContext"/> </if-not-empty> @@ -378,7 +377,7 @@ <result-to-field result-name="contactMechId" map-name="mobilePhonePurposeContext"/> </call-service> <set field="mobilePhonePurposeContext.partyId" from-field="tempMap.partyId" /> - <string-to-field string="PHONE_MOBILE" field-name="contactMechPurposeTypeId" map-name="mobilePhonePurposeContext"/> + <set field="mobilePhonePurposeContext.contactMechPurposeTypeId" value="PHONE_MOBILE" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="mobilePhonePurposeContext"/> </if-not-empty> @@ -388,7 +387,7 @@ <result-to-field result-name="contactMechId" map-name="emailPurposeContext"/> </call-service> <set field="emailPurposeContext.partyId" from-field="tempMap.partyId" /> - <string-to-field string="PRIMARY_EMAIL" field-name="contactMechPurposeTypeId" map-name="emailPurposeContext"/> + <set field="emailPurposeContext.contactMechPurposeTypeId" value="PRIMARY_EMAIL" /> <call-service service-name="createPartyContactMechPurpose" in-map-name="emailPurposeContext"/> </if-not-empty> Modified: incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/config/ConfigServices.xml URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/config/ConfigServices.xml?view=diff&rev=468277&r1=468276&r2=468277 ============================================================================== --- incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/config/ConfigServices.xml (original) +++ incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/config/ConfigServices.xml Thu Oct 26 22:19:25 2006 @@ -20,8 +20,8 @@ xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd"> <!-- ProductConfig methods --> <simple-method method-name="createProductConfig" short-description="Create a ProductConfig"> - <string-to-field string="createProductConfig" field-name="callingMethodName"/> - <string-to-field string="CREATE" field-name="checkAction"/> + <set field="callingMethodName" value="createProductConfig" /> + <set field="checkAction" value="CREATE" /> <call-simple-method method-name="checkProductRelatedPermission" xml-resource="org/ofbiz/product/product/ProductServices.xml"/> <check-permission permission="CATALOG_PRICE_MAINT"><fail-property resource="ProductUiLabels" property="ProductPriceMaintPermissionError"/></check-permission> <check-errors/> @@ -40,8 +40,8 @@ <create-value value-name="newEntity"/> </simple-method> <simple-method method-name="updateProductConfig" short-description="Update an ProductConfig"> - <string-to-field string="updateProductConfig" field-name="callingMethodName"/> - <string-to-field string="UPDATE" field-name="checkAction"/> + <set field="callingMethodName" value="updateProductConfig" /> + <set field="checkAction" value="UPDATE" /> <call-simple-method method-name="checkProductRelatedPermission" xml-resource="org/ofbiz/product/product/ProductServices.xml"/> <check-permission permission="CATALOG_PRICE_MAINT"><fail-property resource="ProductUiLabels" property="ProductPriceMaintPermissionError"/></check-permission> <check-errors/> @@ -55,8 +55,8 @@ <store-value value-name="lookedUpValue"/> </simple-method> <simple-method method-name="deleteProductConfig" short-description="Delete an ProductConfig"> - <string-to-field string="deleteProductConfig" field-name="callingMethodName"/> - <string-to-field string="DELETE" field-name="checkAction"/> + <set field="callingMethodName" value="deleteProductConfig" /> + <set field="checkAction" value="DELETE" /> <call-simple-method method-name="checkProductRelatedPermission" xml-resource="org/ofbiz/product/product/ProductServices.xml"/> <check-permission permission="CATALOG_PRICE_MAINT"><fail-property resource="ProductUiLabels" property="ProductPriceMaintPermissionError"/></check-permission> <check-errors/> 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=468277&r1=468276&r2=468277 ============================================================================== --- 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 Thu Oct 26 22:19:25 2006 @@ -48,7 +48,7 @@ </if-not-empty> </iterate> <!-- now that the issuance is done, set the needsInventoryIssuance=N --> - <string-to-field string="N" field-name="orderHeader.needsInventoryIssuance"/> + <set field="orderHeader.needsInventoryIssuance" value="N" /> <store-value value-name="orderHeader"/> <log level="info" message="Issued inventory for orderId ${orderHeader.orderId}."/> <else> @@ -90,16 +90,16 @@ <!-- 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="productStore.reserveOrderEnumId"> - <string-to-field string="+expireDate" field-name="orderByString"/> + <set field="orderByString" value="+expireDate" /> <else> <if-compare value="INVRO_LIFO_EXP" operator="equals" field-name="productStore.reserveOrderEnumId"> - <string-to-field string="-expireDate" field-name="orderByString"/> + <set field="orderByString" value="-expireDate" /> <else> <if-compare value="INVRO_LIFO_REC" operator="equals" field-name="productStore.reserveOrderEnumId"> - <string-to-field string="+datetimeReceived" field-name="orderByString"/> + <set field="orderByString" value="+datetimeReceived" /> <else> <!-- the default reserveOrderEnumId is INVRO_FIFO_REC, ie FIFO based on date received --> - <string-to-field string="-datetimeReceived" field-name="orderByString"/> + <set field="orderByString" value="-datetimeReceived" /> </else> </if-compare> </else> @@ -194,7 +194,7 @@ <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 field="inventoryItem.statusId" value="INV_DELIVERED" /> <store-value value-name="inventoryItem"/> <!-- create ItemIssuance record --> 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=468277&r1=468276&r2=468277 ============================================================================== --- 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 Thu Oct 26 22:19:25 2006 @@ -20,8 +20,8 @@ xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd"> <!-- ProductPrice methods --> <simple-method method-name="createProductPrice" short-description="Create an ProductPrice"> - <string-to-field string="createProductPrice" field-name="callingMethodName"/> - <string-to-field string="CREATE" field-name="checkAction"/> + <set field="callingMethodName" value="createProductPrice" /> + <set field="checkAction" value="CREATE" /> <call-simple-method method-name="checkProductRelatedPermission" xml-resource="org/ofbiz/product/product/ProductServices.xml"/> <check-permission permission="CATALOG_PRICE_MAINT"><fail-property resource="ProductUiLabels" property="ProductPriceMaintPermissionError"/></check-permission> <check-errors/> @@ -45,8 +45,8 @@ <create-value value-name="newEntity"/> </simple-method> <simple-method method-name="updateProductPrice" short-description="Update an ProductPrice"> - <string-to-field string="updateProductPrice" field-name="callingMethodName"/> - <string-to-field string="UPDATE" field-name="checkAction"/> + <set field="callingMethodName" value="updateProductPrice" /> + <set field="checkAction" value="UPDATE" /> <call-simple-method method-name="checkProductRelatedPermission" xml-resource="org/ofbiz/product/product/ProductServices.xml"/> <check-permission permission="CATALOG_PRICE_MAINT"><fail-property resource="ProductUiLabels" property="ProductPriceMaintPermissionError"/></check-permission> <check-errors/> @@ -65,8 +65,8 @@ <store-value value-name="lookedUpValue"/> </simple-method> <simple-method method-name="deleteProductPrice" short-description="Delete an ProductPrice"> - <string-to-field string="deleteProductPrice" field-name="callingMethodName"/> - <string-to-field string="DELETE" field-name="checkAction"/> + <set field="callingMethodName" value="deleteProductPrice" /> + <set field="checkAction" value="DELETE" /> <call-simple-method method-name="checkProductRelatedPermission" xml-resource="org/ofbiz/product/product/ProductServices.xml"/> <check-permission permission="CATALOG_PRICE_MAINT"><fail-property resource="ProductUiLabels" property="ProductPriceMaintPermissionError"/></check-permission> <check-errors/> @@ -108,8 +108,8 @@ <!-- ProductPaymentMethodType methods --> <simple-method method-name="createProductPaymentMethodType" short-description="create a ProductPaymentMethodType"> - <string-to-field string="createProductPaymentMethodType" field-name="callingMethodName"/> - <string-to-field string="CREATE" field-name="checkAction"/> + <set field="callingMethodName" value="createProductPaymentMethodType" /> + <set field="checkAction" value="CREATE" /> <call-simple-method method-name="checkProductRelatedPermission" xml-resource="org/ofbiz/product/product/ProductServices.xml"/> <check-errors/> <make-value entity-name="ProductPaymentMethodType" value-name="newEntity"/> @@ -119,8 +119,8 @@ <create-value value-name="newEntity"/> </simple-method> <simple-method method-name="updateProductPaymentMethodType" short-description="update a ProductPaymentMethodType"> - <string-to-field string="updateProductPaymentMethodType" field-name="callingMethodName"/> - <string-to-field string="UPDATE" field-name="checkAction"/> + <set field="callingMethodName" value="updateProductPaymentMethodType" /> + <set field="checkAction" value="UPDATE" /> <call-simple-method method-name="checkProductRelatedPermission" xml-resource="org/ofbiz/product/product/ProductServices.xml"/> <check-errors/> <entity-one entity-name="ProductPaymentMethodType" value-name="lookedUpValue"/> @@ -128,8 +128,8 @@ <store-value value-name="lookedUpValue"/> </simple-method> <simple-method method-name="deleteProductPaymentMethodType" short-description="delete a ProductPaymentMethodType"> - <string-to-field string="deleteProductPaymentMethodType" field-name="callingMethodName"/> - <string-to-field string="DELETE" field-name="checkAction"/> + <set field="callingMethodName" value="deleteProductPaymentMethodType" /> + <set field="checkAction" value="DELETE" /> <call-simple-method method-name="checkProductRelatedPermission" xml-resource="org/ofbiz/product/product/ProductServices.xml"/> <check-errors/> <entity-one entity-name="ProductPaymentMethodType" value-name="lookedUpValue"/> 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=468277&r1=468276&r2=468277 ============================================================================== --- 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 Thu Oct 26 22:19:25 2006 @@ -164,7 +164,7 @@ <call-map-processor xml-resource="org/ofbiz/product/storage/FacilityContactMechMapProcs.xml" processor-name="updateFacilityContactMech" in-map-name="parameters" out-map-name="context2"/> <set field="context2.newContactMechId" from-field="newFacilityContactMech.contactMechId" /> - <string-to-field map-name="context2" field-name="contactMechTypeId" string="POSTAL_ADDRESS"/> + <set field="context2.contactMechTypeId" value="POSTAL_ADDRESS" /> <log level="info" message="Copied id to context2: ${context2.newContactMechId}"/> <call-service in-map-name="context2" service-name="updateFacilityContactMech"> <default-message>Facility Contact Mechanism successfully updated</default-message> @@ -211,7 +211,7 @@ <call-map-processor xml-resource="org/ofbiz/product/storage/FacilityContactMechMapProcs.xml" processor-name="updateFacilityContactMech" in-map-name="parameters" out-map-name="context2"/> <set field="context2.newContactMechId" from-field="newFacilityContactMech.contactMechId" /> - <string-to-field map-name="context2" field-name="contactMechTypeId" string="TELECOM_NUMBER"/> + <set field="context2.contactMechTypeId" value="TELECOM_NUMBER" /> <log level="info" message="Copied id to context2: ${context2.newContactMechId}"/> <call-service in-map-name="context2" service-name="updateFacilityContactMech"> <default-message>Facility Contact Mechanism successfully updated</default-message> @@ -228,7 +228,7 @@ <call-map-processor xml-resource="org/ofbiz/product/storage/FacilityContactMechMapProcs.xml" processor-name="emailAddress" in-map-name="parameters" out-map-name="context"/> <check-errors/> - <string-to-field map-name="context" field-name="contactMechTypeId" string="EMAIL_ADDRESS"/> + <set field="context.contactMechTypeId" value="EMAIL_ADDRESS" /> <call-service service-name="createFacilityContactMech" in-map-name="context"> <default-message>Facility Contact Mechanism successfully created.</default-message> <result-to-result result-name="contactMechId"/> @@ -243,7 +243,7 @@ <call-map-processor xml-resource="org/ofbiz/product/storage/FacilityContactMechMapProcs.xml" processor-name="emailAddress" in-map-name="parameters" out-map-name="context"/> <check-errors/> - <string-to-field map-name="context" field-name="contactMechTypeId" string="EMAIL_ADDRESS"/> + <set field="context.contactMechTypeId" value="EMAIL_ADDRESS" /> <call-service service-name="updateFacilityContactMech" in-map-name="context"> <default-message>Facility Contact Mechanism successfully updated.</default-message> <result-to-result result-name="contactMechId"/> |
Free forum by Nabble | Edit this page |