|
Modified: ofbiz/trunk/applications/marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml?rev=730397&r1=730396&r2=730397&view=diff ============================================================================== --- ofbiz/trunk/applications/marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml (original) +++ ofbiz/trunk/applications/marketing/script/org/ofbiz/marketing/tracking/TrackingCodeServices.xml Wed Dec 31 05:59:08 2008 @@ -25,7 +25,7 @@ <check-permission permission="MARKETING" action="_CREATE"><fail-message message="Security Error: to run createTrackingCode you must have the MARKETING_CREATE or MARKETING_ADMIN permission"/></check-permission> <check-errors/> - <now-timestamp field="nowStamp"/> + <now-timestamp-to-env env-name="nowStamp"/> <make-value value-field="newEntity" entity-name="TrackingCode"/> <set-nonpk-fields map="parameters" value-field="newEntity"/> @@ -43,7 +43,7 @@ <check-permission permission="MARKETING" action="_UPDATE"><fail-message message="Security Error: to run updateTrackingCode you must have the MARKETING_UPDATE or MARKETING_ADMIN permission"/></check-permission> <check-errors/> - <now-timestamp field="nowStamp"/> + <now-timestamp-to-env env-name="nowStamp"/> <make-value entity-name="TrackingCode" value-field="lookupPKMap"/> <set-pk-fields map="parameters" value-field="lookupPKMap"/> @@ -70,7 +70,7 @@ <check-permission permission="MARKETING" action="_CREATE"><fail-message message="Security Error: to run createTrackingCodeType you must have the MARKETING_CREATE or MARKETING_ADMIN permission"/></check-permission> <check-errors/> - <now-timestamp field="nowStamp"/> + <now-timestamp-to-env env-name="nowStamp"/> <make-value value-field="newEntity" entity-name="TrackingCodeType"/> <set-nonpk-fields map="parameters" value-field="newEntity"/> @@ -85,7 +85,7 @@ <check-permission permission="MARKETING" action="_UPDATE"><fail-message message="Security Error: to run updateTrackingCodeType you must have the MARKETING_UPDATE or MARKETING_ADMIN permission"/></check-permission> <check-errors/> - <now-timestamp field="nowStamp"/> + <now-timestamp-to-env env-name="nowStamp"/> <make-value entity-name="TrackingCodeType" value-field="lookupPKMap"/> <set-pk-fields map="parameters" value-field="lookupPKMap"/> @@ -105,7 +105,7 @@ </simple-method> <simple-method method-name="createTrackingCodeOrder" short-description="Create an TrackingCodeOrder"> - <now-timestamp field="nowStamp"/> + <now-timestamp-to-env env-name="nowStamp"/> <make-value value-field="newEntity" entity-name="TrackingCodeOrder"/> <set-nonpk-fields map="parameters" value-field="newEntity"/> <set-pk-fields map="parameters" value-field="newEntity"/> @@ -116,7 +116,7 @@ <create-value value-field="newEntity"/> </simple-method> <simple-method method-name="updateTrackingCodeOrder" short-description="Update an TrackingCodeOrder"> - <now-timestamp field="nowStamp"/> + <now-timestamp-to-env env-name="nowStamp"/> <make-value entity-name="TrackingCodeOrder" value-field="lookupPKMap"/> <set-pk-fields map="parameters" value-field="lookupPKMap"/> @@ -131,7 +131,7 @@ <!-- add service for tracking code return --> <simple-method method-name="createTrackingCodeOrderReturn" short-description="Create an TrackingCodeOrderReturn"> - <now-timestamp field="nowStamp"/> + <now-timestamp-to-env env-name="nowStamp"/> <make-value value-field="newEntity" entity-name="TrackingCodeOrderReturn"/> <set-nonpk-fields map="parameters" value-field="newEntity"/> <set-pk-fields map="parameters" value-field="newEntity"/> @@ -170,7 +170,7 @@ </if-not-empty> </simple-method> <simple-method method-name="updateTrackingCodeOrderReturn" short-description="update an TrackingCodeOrderReturn"> - <now-timestamp field="nowStamp"/> + <now-timestamp-to-env env-name="nowStamp"/> <make-value entity-name="TrackingCodeOrderReturn" value-field="lookupPKMap"/> <set-pk-fields map="parameters" value-field="lookupPKMap"/> Modified: ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml?rev=730397&r1=730396&r2=730397&view=diff ============================================================================== --- ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml (original) +++ ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/lead/LeadServices.xml Wed Dec 31 05:59:08 2008 @@ -100,7 +100,7 @@ <log level="verbose" message=" ${partyGroupPartyId}"></log> <if-not-empty field="parameters.leadSource"> <make-value entity-name="DataSource" value-field="dataSource"/> - <sequenced-id sequence-name="DataSource" field="dataSourceId"/> + <sequenced-id-to-env sequence-name="DataSource" env-name="dataSourceId"/> <set field="dataSource.dataSourceId" from-field="dataSourceId"/> <set field="dataSource.dataSourceTypeId" value="LEAD_SOURCE"/> <set field="dataSource.description" from-field="parameters.leadSource"/> @@ -109,7 +109,7 @@ <make-value entity-name="PartyDataSource" value-field="partyDataSource"/> <set field="partyDataSource.partyId" from-field="partyId"/> <set field="partyDataSource.dataSourceId" from-field="dataSourceId"/> - <now-timestamp field="nowTimestamp"/> + <now-timestamp-to-env env-name="nowTimestamp"/> <set field="partyDataSource.fromDate" from-field="nowTimestamp"/> <set field="partyDataSource.isCreate" value="Y"/> <create-value value-field="partyDataSource"/> Modified: ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/opportunity/OpportunityServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/opportunity/OpportunityServices.xml?rev=730397&r1=730396&r2=730397&view=diff ============================================================================== --- ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/opportunity/OpportunityServices.xml (original) +++ ofbiz/trunk/applications/marketing/script/org/ofbiz/sfa/opportunity/OpportunityServices.xml Wed Dec 31 05:59:08 2008 @@ -24,7 +24,7 @@ <simple-method method-name="createOpportunity" short-description="Create Opportunity for SFA"> <make-value entity-name="SalesOpportunity" value-field="newEntity"/> <if-empty field="parameters.salesOpportunityId"> - <sequenced-id sequence-name="SalesOpportunity" field="parameters.salesOpportunityId"/> + <sequenced-id-to-env sequence-name="SalesOpportunity" env-name="parameters.salesOpportunityId"/> </if-empty> <set-nonpk-fields map="parameters" value-field="newEntity"/> <set-pk-fields map="parameters" value-field="newEntity"/> Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/UpgradeServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/UpgradeServices.xml?rev=730397&r1=730396&r2=730397&view=diff ============================================================================== --- ofbiz/trunk/applications/order/script/org/ofbiz/order/UpgradeServices.xml (original) +++ ofbiz/trunk/applications/order/script/org/ofbiz/order/UpgradeServices.xml Wed Dec 31 05:59:08 2008 @@ -38,7 +38,7 @@ <simple-method method-name="migrateCustRequestRole" short-description="Migrate data from OldCustRequestRole to CustRequestParty"> <entity-condition entity-name="OldCustRequestRole" list="oldCustRequestRoles"/> - <now-timestamp field="fromDate"/> + <now-timestamp-to-env env-name="fromDate"/> <iterate list="oldCustRequestRoles" entry="oldCustRequestRole"> <make-value entity-name="CustRequestParty" value-field="custRequestParty"/> <set field="custRequestParty.custRequestId" from-field="oldCustRequestRole.custRequestId"/> Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/customer/CustomerEvents.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/customer/CustomerEvents.xml?rev=730397&r1=730396&r2=730397&view=diff ============================================================================== --- ofbiz/trunk/applications/order/script/org/ofbiz/order/customer/CustomerEvents.xml (original) +++ ofbiz/trunk/applications/order/script/org/ofbiz/order/customer/CustomerEvents.xml Wed Dec 31 05:59:08 2008 @@ -23,7 +23,7 @@ <simple-method method-name="validateCustomerInfo" short-description="validateCustomerInfo" login-required="false"> <!-- timestamp to be used --> - <now-timestamp field="nowStamp"/> + <now-timestamp-to-env env-name="nowStamp"/> <!-- setup the party/person --> <call-map-processor in-map-name="parameters" out-map-name="personMap"> Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/opportunity/OpportunityServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/opportunity/OpportunityServices.xml?rev=730397&r1=730396&r2=730397&view=diff ============================================================================== --- ofbiz/trunk/applications/order/script/org/ofbiz/order/opportunity/OpportunityServices.xml (original) +++ ofbiz/trunk/applications/order/script/org/ofbiz/order/opportunity/OpportunityServices.xml Wed Dec 31 05:59:08 2008 @@ -29,7 +29,7 @@ <!-- make the value and set the fields from the parameters --> <make-value value-field="salesForecast" entity-name="SalesForecast"/> - <sequenced-id sequence-name="SalesForecast" field="salesForecastId"/> + <sequenced-id-to-env sequence-name="SalesForecast" env-name="salesForecastId"/> <set field="salesForecast.salesForecastId" from-field="salesForecastId"/> <set-nonpk-fields map="parameters" value-field="salesForecast"/> @@ -66,7 +66,7 @@ <!-- make the value and set the fields from the salesForecast map --> <make-value value-field="salesForecastHistory" entity-name="SalesForecastHistory"/> - <sequenced-id sequence-name="SalesForecastHistory" field="salesForecastHistoryId"/> + <sequenced-id-to-env sequence-name="SalesForecastHistory" env-name="salesForecastHistoryId"/> <set field="salesForecastHistory.salesForecastHistoryId" from-field="salesForecastHistoryId"/> <set-nonpk-fields value-field="salesForecastHistory" map="salesForecast"/> @@ -74,7 +74,7 @@ <set field="salesForecastHistory.changeNote" from-field="parameters.changeNote"/> <!-- set the modified info --> - <now-timestamp field="nowTimestamp"/> + <now-timestamp-to-env env-name="nowTimestamp"/> <set field="salesForecastHistory.modifiedTimestamp" from-field="nowTimestamp"/> <set field="salesForecast.modifiedByUserLoginId" from-field="userLogin.userLoginId"/> @@ -85,7 +85,7 @@ <!-- Sales Forecast Detail --> <simple-method method-name="createSalesForecastDetail" short-description="Creates a sales forecast detail"> <make-value entity-name="SalesForecastDetail" value-field="newEntity"/> - <sequenced-id sequence-name="SalesForecastDetail" field="newEntity.salesForecastDetailId"/> + <sequenced-id-to-env sequence-name="SalesForecastDetail" env-name="newEntity.salesForecastDetailId"/> <field-to-result field="newEntity.salesForecastDetailId" result-name="salesForecastDetailId"/> <set-pk-fields map="parameters" value-field="newEntity"/> <set-nonpk-fields map="parameters" value-field="newEntity"/> Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml?rev=730397&r1=730396&r2=730397&view=diff ============================================================================== --- ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml (original) +++ ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml Wed Dec 31 05:59:08 2008 @@ -21,7 +21,7 @@ <simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd"> <simple-method method-name="createReturnHeader" short-description="Create a ReturnHeader"> - <now-timestamp field="nowTimestamp"/> + <now-timestamp-to-env env-name="nowTimestamp"/> <if> <condition> @@ -92,7 +92,7 @@ </call-service> <else> - <sequenced-id sequence-name="ReturnHeader" field="newEntity.returnId"/> + <sequenced-id-to-env sequence-name="ReturnHeader" env-name="newEntity.returnId"/> </else> </if-compare> <field-to-result field="newEntity.returnId" result-name="returnId"/> @@ -513,7 +513,7 @@ <make-value value-field="newEntity" entity-name="ReturnAdjustment"/> <set-nonpk-fields map="parameters" value-field="newEntity"/> - <sequenced-id sequence-name="ReturnAdjustment" field="newEntity.returnAdjustmentId"/> + <sequenced-id-to-env sequence-name="ReturnAdjustment" env-name="newEntity.returnAdjustmentId"/> <field-to-result field="newEntity.returnAdjustmentId" result-name="returnAdjustmentId"/> <create-value value-field="newEntity"/> <set field="responseMessage" value="Return Adjustment #${newEntity.returnAdjustmentId} was created successfully."/> @@ -564,13 +564,13 @@ <!-- create status change history --> <!-- TODO: this should be done with a createReturnStatus service call --> <make-value entity-name="ReturnStatus" value-field="newReturnStatus"/> - <sequenced-id sequence-name="ReturnStatus" field="newReturnStatus.returnStatusId"/> + <sequenced-id-to-env sequence-name="ReturnStatus" env-name="newReturnStatus.returnStatusId"/> <set field="newReturnStatus.returnId" from-field="returnItem.returnItemSeqId"/> <set field="newReturnStatus.returnId" from-field="returnItem.returnId"/> <set field="newReturnStatus.statusId" from-field="returnItem.statusId"/> - <now-timestamp field="newReturnStatus.statusDatetime"/> + <now-timestamp-to-env env-name="newReturnStatus.statusDatetime"/> <create-value value-field="newReturnStatus"/> </if-compare-field> @@ -614,12 +614,12 @@ <call-service service-name="updateReturnHeader" in-map-name="returnHeaderCtx"/> <!-- create the status history --> <make-value entity-name="ReturnStatus" value-field="newValue"/> - <sequenced-id sequence-name="ReturnStatus" field="newValue.returnStatusId"/> + <sequenced-id-to-env sequence-name="ReturnStatus" env-name="newValue.returnStatusId"/> <set field="newValue.returnId" from-field="returnHeader.returnId"/> <set field="newValue.statusId" value="RETURN_RECEIVED"/> - <now-timestamp field="newValue.statusDatetime"/> + <now-timestamp-to-env env-name="newValue.statusDatetime"/> <create-value value-field="newValue"/> </if-compare> @@ -629,7 +629,7 @@ </simple-method> <simple-method method-name="createReturnItemResponse" short-description="Create a ReturnItemResponse"> <make-value value-field="newEntity" entity-name="ReturnItemResponse"/> - <sequenced-id sequence-name="ReturnItemResponse" field="newEntity.returnItemResponseId"/> + <sequenced-id-to-env sequence-name="ReturnItemResponse" env-name="newEntity.returnItemResponseId"/> <set-nonpk-fields map="parameters" value-field="newEntity"/> <create-value value-field="newEntity"/> <field-to-result field="newEntity.returnItemResponseId" result-name="returnItemResponseId"/> Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml?rev=730397&r1=730396&r2=730397&view=diff ============================================================================== --- ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml (original) +++ ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderServices.xml Wed Dec 31 05:59:08 2008 @@ -35,7 +35,7 @@ <check-errors/> <if-not-empty field="monthsToInclude"> - <now-timestamp field="nowTimestamp"/> + <now-timestamp-to-env env-name="nowTimestamp"/> <call-bsh><