Improved: Removed deprecated entity related migration service, also removed some more deprecated entities that are located in entitymodel.xml instead entitymodel_old.xm (OFBIZ-9327)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792182 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -49,33 +49,4 @@ under the License.
|
||||
</if-empty>
|
||||
</iterate>
|
||||
</simple-method>
|
||||
|
||||
<simple-method method-name="migrateFixedAssetMaintMeter" short-description="Copy FixedAssetMaintMeter To FixedAssetMeter">
|
||||
<entity-condition entity-name="FixedAssetMaintMeter" list="maintMeterList"/>
|
||||
<iterate list="maintMeterList" entry="maintMeter">
|
||||
<make-value value-field="newEntity" entity-name="FixedAssetMeter"/>
|
||||
<set-pk-fields map="maintMeter" value-field="newEntity"/>
|
||||
<set-nonpk-fields map="maintMeter" value-field="newEntity"/>
|
||||
<set field="newEntity.readingDate" from-field="maintMeter.createdStamp"/>
|
||||
<entity-one entity-name="FixedAssetMeter" value-field="lookedUpValue" auto-field-map="false">
|
||||
<field-map field-name="fixedAssetId" from-field="newEntity.fixedAssetId"/>
|
||||
<field-map field-name="productMeterTypeId" from-field="newEntity.productMeterTypeId"/>
|
||||
<field-map field-name="readingDate" from-field="newEntity.readingDate"/>
|
||||
</entity-one>
|
||||
<if-empty field="lookedUpValue">
|
||||
<create-value value-field="newEntity"/>
|
||||
<check-errors/>
|
||||
</if-empty>
|
||||
</iterate>
|
||||
</simple-method>
|
||||
|
||||
<simple-method method-name="migrateAgreementWorkEffortAppl" short-description="Copy AgreementWorkEffortAppl To AgreementWorkEffortApplic">
|
||||
<entity-condition entity-name="OldAgreementWorkEffortAppl" list="agreementWorkEffortApplList"/>
|
||||
<iterate list="agreementWorkEffortApplList" entry="agreementWorkEffortAppl">
|
||||
<make-value value-field="newEntity" entity-name="AgreementWorkEffortApplic"/>
|
||||
<set-pk-fields map="agreementWorkEffortAppl" value-field="newEntity"/>
|
||||
<create-value value-field="newEntity"/>
|
||||
<check-errors/>
|
||||
</iterate>
|
||||
</simple-method>
|
||||
</simple-methods>
|
||||
|
||||
@@ -386,36 +386,4 @@ under the License.
|
||||
<set field="delRateAmount.fromDate" from-field="parameters.rateAmountFromDate"/>
|
||||
<call-service service-name="deleteRateAmount" in-map-name="delRateAmount"/>
|
||||
</simple-method>
|
||||
|
||||
<!-- migrate service -->
|
||||
<simple-method method-name="migrateRateFactor" short-description="migrate the several entities which were change in the rate refactor activity">
|
||||
<entity-condition entity-name="OldEmplPositionTypeRate" list="posRates"/>
|
||||
<iterate list="posRates" entry="posRate">
|
||||
<make-value value-field="emplPositionTypeRate" entity-name="EmplPositionTypeRate"/>
|
||||
<set-pk-fields value-field="posRate" map="emplPositionTypeRate"/>
|
||||
<set-nonpk-fields map="emplPositionTypeRate" value-field="posRate"/>
|
||||
<create-value value-field="emplPositionTypeRate"/>
|
||||
<make-value value-field="rateAmount" entity-name="RateAmount"/>
|
||||
<set-pk-fields value-field="posRate" map="rateAmount"/>
|
||||
<set-nonpk-fields map="rateAmount" value-field="posRate"/>
|
||||
<set field="rateAmount.workeffortId" value="_NA_"/>
|
||||
<set field="rateAmount.partyId" value="_NA_"/>
|
||||
<property-to-field resource="general.properties" property="currency.uom.id.default" field="rateAmount.rateCurrencyUomId"/>
|
||||
<create-value value-field="rateAmount"/>
|
||||
</iterate>
|
||||
<entity-condition entity-name="OldPartyRate" list="partyRates"/>
|
||||
<iterate list="oldPartyRates" entry="oldPartyRate">
|
||||
<make-value value-field="partyRate" entity-name="PartyRate"/>
|
||||
<set-pk-fields value-field="oldPartyRate" map="partyRate"/>
|
||||
<set-nonpk-fields map="partyRate" value-field="oldPartyRate"/>
|
||||
<create-value value-field="partyRate"/>
|
||||
<make-value value-field="rateAmount" entity-name="RateAmount"/>
|
||||
<set-pk-fields value-field="oldPartyRate" map="rateAmount"/>
|
||||
<set-nonpk-fields map="rateAmount" value-field="oldPartyRate"/>
|
||||
<set field="rateAmount.workeffortId" value="_NA_"/>
|
||||
<set field="rateAmount.emplPositionTypeId" value="_NA_"/>
|
||||
<set field="rateAmount.periodTypeId" value="RATE_HOUR"/>
|
||||
<create-value value-field="rateAmount"/>
|
||||
</iterate>
|
||||
</simple-method>
|
||||
</simple-methods>
|
||||
|
||||
@@ -43,15 +43,4 @@ under the License.
|
||||
</description>
|
||||
</service>
|
||||
|
||||
<service name="migrateFixedAssetMaintMeter" engine="simple"
|
||||
location="component://accounting/minilang/UpgradeServices.xml" invoke="migrateFixedAssetMaintMeter" auth="true">
|
||||
<description>Copy the FixedAssetMaintMeter entity to FixedAssetMeter. FixedAssetMeter.readingDate will be replaced with FixedAssetMaintMeter.createdStamp.</description>
|
||||
<permission-service service-name="fixedAssetPermissionCheck" main-action="CREATE"/>
|
||||
</service>
|
||||
|
||||
<service name="migrateAgreementWorkEffortAppl" engine="simple"
|
||||
location="component://accounting/minilang/UpgradeServices.xml" invoke="migrateAgreementWorkEffortAppl" auth="true">
|
||||
<description>Copy the AgreementWorkEffortAppl entity to AgreementWorkEffortApplic</description>
|
||||
<permission-service service-name="acctgAgreementPermissionCheck" main-action="CREATE"/>
|
||||
</service>
|
||||
</services>
|
||||
|
||||
@@ -807,7 +807,7 @@ under the License.
|
||||
<field name="productMaintSeqId" type="id"><description>Optional, though should be filled in to determine upcoming maintenance for all scheduled maintenance</description></field>
|
||||
<field name="scheduleWorkEffortId" type="id"><description>Has field for estimated/actual start and finish dates, etc</description></field>
|
||||
<field name="intervalQuantity" type="fixed-point"></field>
|
||||
<field name="intervalUomId" type="id"><description>UOM for intervalQuantity; if used intervalMeterTypeId is generally not used (ie one or the other); if a meter reading is done as well that is not tied to the interval it should be tracked in a FixedAssetMaintMeter record</description></field>
|
||||
<field name="intervalUomId" type="id"><description>UOM for intervalQuantity; if used intervalMeterTypeId is generally not used (ie one or the other); if a meter reading is done as well that is not tied to the interval it should be tracked in a FixedAssetMeter record</description></field>
|
||||
<field name="intervalMeterTypeId" type="id"><description>Meter Type for intervalQuantity; if used intervalUomId is generally not used (ie one or the other)</description></field>
|
||||
<field name="purchaseOrderId" type="id"></field>
|
||||
<prim-key field="fixedAssetId"/>
|
||||
@@ -835,24 +835,6 @@ under the License.
|
||||
</relation>
|
||||
|
||||
</entity>
|
||||
<entity entity-name="FixedAssetMaintMeter"
|
||||
package-name="org.apache.ofbiz.accounting.fixedasset"
|
||||
title="Deprecated - use FixedAssetMeter">
|
||||
<field name="fixedAssetId" type="id-ne"></field>
|
||||
<field name="maintHistSeqId" type="id-ne"></field>
|
||||
<field name="productMeterTypeId" type="id-ne"></field>
|
||||
<field name="meterValue" type="fixed-point"></field>
|
||||
<prim-key field="fixedAssetId"/>
|
||||
<prim-key field="maintHistSeqId"/>
|
||||
<prim-key field="productMeterTypeId"/>
|
||||
<relation type="one" fk-name="FXDASTMNMT_FAMNT" rel-entity-name="FixedAssetMaint">
|
||||
<key-map field-name="fixedAssetId"/>
|
||||
<key-map field-name="maintHistSeqId"/>
|
||||
</relation>
|
||||
<relation type="one" fk-name="FXDASTMNMT_PMTYP" rel-entity-name="ProductMeterType">
|
||||
<key-map field-name="productMeterTypeId"/>
|
||||
</relation>
|
||||
</entity>
|
||||
<entity entity-name="FixedAssetMeter"
|
||||
package-name="org.apache.ofbiz.accounting.fixedasset"
|
||||
title="Fixed Asset Meter Entity">
|
||||
|
||||
@@ -2720,26 +2720,6 @@ under the License.
|
||||
<key-map field-name="changeByUserLoginId" rel-field-name="userLoginId"/>
|
||||
</relation>
|
||||
</entity>
|
||||
<entity entity-name="OldPartyTaxInfo" table-name="PARTY_TAX_INFO"
|
||||
package-name="org.apache.ofbiz.party.party"
|
||||
title="Party Tax Information Entity">
|
||||
<description>NOTE: this entity is deprecated by PartyTaxAuthInfo</description>
|
||||
<field name="partyId" type="id-ne"></field>
|
||||
<field name="geoId" type="id-ne"></field>
|
||||
<field name="fromDate" type="date-time"></field>
|
||||
<field name="thruDate" type="date-time"></field>
|
||||
<field name="partyTaxId" type="id-long-ne"></field>
|
||||
<field name="isExempt" type="indicator"></field>
|
||||
<prim-key field="partyId"/>
|
||||
<prim-key field="geoId"/>
|
||||
<prim-key field="fromDate"/>
|
||||
<relation type="one" fk-name="PARTY_TXI_PTY" rel-entity-name="Party">
|
||||
<key-map field-name="partyId"/>
|
||||
</relation>
|
||||
<relation type="one" fk-name="PARTY_TXI_GEO" rel-entity-name="Geo">
|
||||
<key-map field-name="geoId"/>
|
||||
</relation>
|
||||
</entity>
|
||||
<entity entity-name="PartyType"
|
||||
package-name="org.apache.ofbiz.party.party"
|
||||
default-resource-name="PartyEntityLabels"
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd">
|
||||
|
||||
<simple-method method-name="migrateSalaryStep" short-description="Migrate data from OldSalaryStep to SalaryStep">
|
||||
<entity-condition entity-name="OldSalaryStep" list="oldSalarySteps"/>
|
||||
<now field="fromDate"/>
|
||||
<entity-one entity-name="UserLogin" value-field="systemUserLogin">
|
||||
<field-map field-name="userLoginId" value="system"/>
|
||||
</entity-one>
|
||||
<iterate list="oldSalarySteps" entry="oldSalaryStep">
|
||||
<make-value entity-name="SalaryStep" value-field="SalaryStep"/>
|
||||
<set field="SalaryStep.salaryStepSeqId" from-field="oldSalaryStep.salaryStepSeqId"/>
|
||||
<set field="SalaryStep.payGradeId" from-field="oldSalaryStep.payGradeId"/>
|
||||
<set field="SalaryStep.dateModified" from-field="oldSalaryStep.dateModified"/>
|
||||
<set field="SalaryStep.amount" from-field="oldSalaryStep.amount"/>
|
||||
<set field="SalaryStep.createdByUserLogin" from-field="systemUserLogin.userLoginId"/>
|
||||
<set field="SalaryStep.lastModifiedByUserLogin" from-field="systemUserLogin.userLoginId"/>
|
||||
<set field="SalaryStep.fromDate" from-field="fromDate"/>
|
||||
<create-value value-field="SalaryStep"/>
|
||||
</iterate>
|
||||
</simple-method>
|
||||
|
||||
</simple-methods>
|
||||
@@ -34,7 +34,6 @@ under the License.
|
||||
<service-resource type="model" loader="main" location="servicedef/services_ability.xml"/>
|
||||
<service-resource type="model" loader="main" location="servicedef/services_employment.xml"/>
|
||||
<service-resource type="model" loader="main" location="servicedef/services_position.xml"/>
|
||||
<service-resource type="model" loader="main" location="servicedef/services_upgrade.xml"/>
|
||||
|
||||
<webapp name="humanres"
|
||||
title="HR"
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
|
||||
<description>Humanres Services</description>
|
||||
<vendor>OFBiz</vendor>
|
||||
|
||||
<service name="migrateSalaryStep" engine="simple"
|
||||
location="component://humanres/minilang/UpgradeServices.xml" invoke="migrateSalaryStep">
|
||||
<description>
|
||||
Migrate data from OldSalaryStep to SalaryStep.
|
||||
Since revision 1709214 (2015-10-18) the entity SalaryStep has been deprecated.
|
||||
This service can be used to upgrade existing data from the OldSalaryStep entity to the new SalaryStep entity.
|
||||
This service must be run only once, else you will get duplicates.
|
||||
</description>
|
||||
</service>
|
||||
</services>
|
||||
@@ -21,34 +21,6 @@ under the License.
|
||||
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd">
|
||||
|
||||
<simple-method method-name="migrateOrderItemAssociation" short-description="Migrate data from OldOrderItemAssociation to OrderItemAssoc">
|
||||
<entity-condition entity-name="OldOrderItemAssociation" list="oldOrderItemAssociations"/>
|
||||
<iterate list="oldOrderItemAssociations" entry="oldOrderItemAssociation">
|
||||
<make-value entity-name="OrderItemAssoc" value-field="orderItemAssoc"/>
|
||||
<set field="orderItemAssoc.orderId" from-field="oldOrderItemAssociation.salesOrderId"/>
|
||||
<set field="orderItemAssoc.orderItemSeqId" from-field="oldOrderItemAssociation.soItemSeqId"/>
|
||||
<set field="orderItemAssoc.toOrderId" from-field="oldOrderItemAssociation.purchaseOrderId"/>
|
||||
<set field="orderItemAssoc.toOrderItemSeqId" from-field="oldOrderItemAssociation.poItemSeqId"/>
|
||||
<set field="orderItemAssoc.shipGroupSeqId" value="_NA_"/>
|
||||
<set field="orderItemAssoc.toShipGroupSeqId" value="_NA_"/>
|
||||
<set field="orderItemAssoc.orderItemAssocTypeId" value="PURCHASE_ORDER"/>
|
||||
<create-value value-field="orderItemAssoc"/>
|
||||
</iterate>
|
||||
</simple-method>
|
||||
|
||||
<simple-method method-name="migrateCustRequestRole" short-description="Migrate data from OldCustRequestRole to CustRequestParty">
|
||||
<entity-condition entity-name="OldCustRequestRole" list="oldCustRequestRoles"/>
|
||||
<now-timestamp field="fromDate"/>
|
||||
<iterate list="oldCustRequestRoles" entry="oldCustRequestRole">
|
||||
<make-value entity-name="CustRequestParty" value-field="custRequestParty"/>
|
||||
<set field="custRequestParty.custRequestId" from-field="oldCustRequestRole.custRequestId"/>
|
||||
<set field="custRequestParty.partyId" from-field="oldCustRequestRole.partyId"/>
|
||||
<set field="custRequestParty.roleTypeId" from-field="oldCustRequestRole.roleTypeId"/>
|
||||
<set field="custRequestParty.fromDate" from-field="fromDate"/>
|
||||
<create-value value-field="custRequestParty"/>
|
||||
</iterate>
|
||||
</simple-method>
|
||||
|
||||
<simple-method method-name="migrateOrderShipment" short-description="Migrate data from ItemIssuances to OrderShipments when the records are not used to record item issuances but only an order to shipment association.">
|
||||
<entity-condition entity-name="ItemIssuance" list="itemIssuances">
|
||||
<condition-list combine="and">
|
||||
|
||||
@@ -22,29 +22,6 @@ under the License.
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
|
||||
<description>Order Services</description>
|
||||
<vendor>OFBiz</vendor>
|
||||
|
||||
<service name="migrateOrderItemAssociation" engine="simple"
|
||||
location="component://order/minilang/UpgradeServices.xml" invoke="migrateOrderItemAssociation">
|
||||
<description>
|
||||
Migrate data from OldOrderItemAssociation to OrderItemAssoc.
|
||||
Since revision 485144 (2006-12-10) the entity OrderItemAssociation has been deprecated.
|
||||
This service can be used to upgrade existing data from the OrderItemAssociation entity to the new
|
||||
OrderItemAssoc entity.
|
||||
Before running this service, load the seed data for the OrderItemAssocType entity from the file:
|
||||
order/data/OrderTypeData.xml
|
||||
</description>
|
||||
</service>
|
||||
<service name="migrateCustRequestRole" engine="simple"
|
||||
location="component://order/minilang/UpgradeServices.xml" invoke="migrateCustRequestRole">
|
||||
<description>
|
||||
Migrate data from OldCustRequestRole to CustRequestParty.
|
||||
Since revision 684647 (2008-08-11) the entity CustRequestRole has been deprecated.
|
||||
This service can be used to upgrade existing data from the OldCustRequestRole entity to the new
|
||||
CustRequestParty entity.
|
||||
Before running this service, load the seed data for the RoleType entity from the file:
|
||||
party/data/PartyTypeData.xml
|
||||
</description>
|
||||
</service>
|
||||
<service name="migrateOrderShipment" engine="simple"
|
||||
location="component://order/minilang/UpgradeServices.xml" invoke="migrateOrderShipment">
|
||||
<description>
|
||||
|
||||
@@ -21,30 +21,6 @@ under the License.
|
||||
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd">
|
||||
|
||||
<simple-method method-name="migrateFacilityRole" short-description="Migrate Data From OldFacilityRole To FacilityParty">
|
||||
<entity-condition entity-name="OldFacilityRole" list="oldFacilityRoles"/>
|
||||
<now-timestamp field="fromDate"/>
|
||||
<iterate list="oldFacilityRoles" entry="oldFacilityRole">
|
||||
<make-value entity-name="FacilityParty" value-field="facilityParty"/>
|
||||
<set field="facilityParty.facilityId" from-field="oldFacilityRole.facilityId"/>
|
||||
<set field="facilityParty.partyId" from-field="oldFacilityRole.partyId"/>
|
||||
<set field="facilityParty.roleTypeId" from-field="oldFacilityRole.roleTypeId"/>
|
||||
<set field="facilityParty.fromDate" from-field="fromDate"/>
|
||||
<entity-one entity-name="PartyRole" value-field="partyRole" auto-field-map="false">
|
||||
<field-map field-name="partyId" from-field="facilityParty.partyId"/>
|
||||
<field-map field-name="roleTypeId" from-field="facilityParty.roleTypeId"/>
|
||||
</entity-one>
|
||||
<if-empty field="partyRole">
|
||||
<make-value entity-name="PartyRole" value-field="partyRole"/>
|
||||
<set field="partyRole.partyId" from-field="facilityParty.partyId"/>
|
||||
<set field="partyRole.roleTypeId" from-field="facilityParty.roleTypeId"/>
|
||||
<create-value value-field="partyRole"/>
|
||||
<check-errors/>
|
||||
</if-empty>
|
||||
<create-value value-field="facilityParty"/>
|
||||
</iterate>
|
||||
</simple-method>
|
||||
|
||||
<simple-method method-name="migrateFacilitySquareFootage" short-description="Migrate Data From from Facility.oldSquareFootage to Facility.facilitySize">
|
||||
<entity-condition entity-name="Facility" list="facilities"/>
|
||||
<iterate list="facilities" entry="facility">
|
||||
@@ -56,23 +32,4 @@ under the License.
|
||||
</iterate>
|
||||
</simple-method>
|
||||
|
||||
<simple-method method-name="migrateProductKeyword" short-description="Migrate Data From OldProductKeyword To ProductKeyword">
|
||||
<entity-condition entity-name="OldProductKeyword" list="oldProductKeywords"/>
|
||||
<iterate list="oldProductKeywords" entry="oldProductKeyword">
|
||||
<entity-one entity-name="ProductKeyword" value-field="checkProductKeyword">
|
||||
<field-map field-name="productId" from-field="oldProductKeyword.productId"/>
|
||||
<field-map field-name="keyword" from-field="oldProductKeyword.keyword"/>
|
||||
<field-map field-name="keywordTypeId" value="KWT_KEYWORD"/>
|
||||
</entity-one>
|
||||
<if-empty field="checkProductKeyword">
|
||||
<make-value entity-name="ProductKeyword" value-field="productKeyword"/>
|
||||
<set field="productKeyword.productId" from-field="oldProductKeyword.productId"/>
|
||||
<set field="productKeyword.keyword" from-field="oldProductKeyword.keyword"/>
|
||||
<set field="productKeyword.keywordTypeId" value="KWT_KEYWORD"/>
|
||||
<set field="productKeyword.relevancyWeight" from-field="oldProductKeyword.relevancyWeight"/>
|
||||
<create-value value-field="productKeyword"/>
|
||||
</if-empty>
|
||||
</iterate>
|
||||
</simple-method>
|
||||
|
||||
</simple-methods>
|
||||
|
||||
@@ -22,18 +22,6 @@ under the License.
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
|
||||
<description>Product Services</description>
|
||||
<vendor>OFBiz</vendor>
|
||||
|
||||
<service name="migrateFacilityRole" engine="simple"
|
||||
location="component://product/minilang/product/UpgradeServices.xml" invoke="migrateFacilityRole">
|
||||
<description>
|
||||
Migrate data from OldFacilityRole to FacilityParty.
|
||||
Since revision 698159 (2008-09-23) the entity FacilityRole has been deprecated.
|
||||
This service can be used to upgrade existing data from the FacilityRole entity to the new
|
||||
FacilityParty entity.
|
||||
Before running this service, load the seed data for the RoleType entity from the file:
|
||||
party/data/PartyTypeData.xml
|
||||
</description>
|
||||
</service>
|
||||
<service name="migrateFacilitySquareFootage" engine="simple"
|
||||
location="component://product/minilang/product/UpgradeServices.xml" invoke="migrateFacilitySquareFootage">
|
||||
<description>
|
||||
@@ -41,16 +29,5 @@ under the License.
|
||||
The field Facility.squareFootageSince has been deprecated since revision 929912 (2010-04-01)
|
||||
</description>
|
||||
</service>
|
||||
<service name="migrateProductKeyword" engine="simple"
|
||||
location="component://product/minilang/product/UpgradeServices.xml" invoke="migrateProductKeyword">
|
||||
<description>
|
||||
Migrate data from oldProductKeyword to ProductKeyword.
|
||||
The entity oldProductKeyword has been deprecated.
|
||||
This service can be used to upgrade existing data from the oldProductKeyword entity to the new
|
||||
ProductKeyword entity.
|
||||
Before running this service, load the seed data for the KeywordType entity from the file:
|
||||
common/data/CommonTypeData.xml
|
||||
</description>
|
||||
</service>
|
||||
|
||||
</services>
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd">
|
||||
|
||||
<simple-method method-name="migrateWorkEffortContactMech" short-description="Migrate data from OldWorkEffortContactMech to WorkEffortContactMech">
|
||||
<entity-condition entity-name="OldWorkEffortContactMech" list="oldWorkEffortContactMechs"/>
|
||||
<now-timestamp field="fromDate"/>
|
||||
<iterate list="oldWorkEffortContactMechs" entry="oldWorkEffortContactMech">
|
||||
<make-value entity-name="WorkEffortContactMech" value-field="workEffortContactMech"/>
|
||||
<set field="workEffortContactMech.workEffortId" from-field="oldWorkEffortContactMech.workEffortId"/>
|
||||
<set field="workEffortContactMech.contactMechId" from-field="oldWorkEffortContactMech.contactMechId"/>
|
||||
<set field="workEffortContactMech.fromDate" from-field="fromDate"/>
|
||||
<create-value value-field="workEffortContactMech"/>
|
||||
</iterate>
|
||||
</simple-method>
|
||||
</simple-methods>
|
||||
@@ -38,7 +38,6 @@ under the License.
|
||||
|
||||
<service-resource type="model" loader="main" location="servicedef/services.xml"/>
|
||||
<service-resource type="model" loader="main" location="servicedef/services_timesheet.xml"/>
|
||||
<service-resource type="model" loader="main" location="servicedef/services_upgrade.xml"/>
|
||||
<service-resource type="model" loader="main" location="servicedef/services_workeffort.xml"/>
|
||||
<service-resource type="eca" loader="main" location="servicedef/secas.xml"/>
|
||||
<service-resource type="group" loader="main" location="servicedef/service_groups.xml"/>
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
|
||||
<description>Order Services</description>
|
||||
<vendor>OFBiz</vendor>
|
||||
|
||||
<service name="migrateWorkEffortContactMech" engine="simple"
|
||||
location="component://workeffort/minilang/workeffort/UpgradeServices.xml" invoke="migrateWorkEffortContactMech">
|
||||
<description>
|
||||
Migrate data from OldWorkEffortContactMech to WorkEffortContactMech.
|
||||
Since revision 827903 (2009-10-21) the entity OldWorkEffortContactMech has been deprecated.
|
||||
This service can be used to upgrade existing data from the OldWorkEffortContactMech entity to the new
|
||||
WorkEffortContactMech entity.
|
||||
</description>
|
||||
</service>
|
||||
</services>
|
||||
@@ -111,17 +111,6 @@ under the License.
|
||||
<key-map field-name="changeByUserLoginId" rel-field-name="userLoginId"/>
|
||||
</relation>
|
||||
</entity>
|
||||
<!-- =========================================================
|
||||
An entity for testing the BLOB data type
|
||||
========================================================== -->
|
||||
<entity entity-name="TestBlob"
|
||||
package-name="org.apache.ofbiz.entity.test"
|
||||
title="Entity for testing the blob type (Deprecated)">
|
||||
<description>Deprecated - use TestFieldType instead</description>
|
||||
<field name="testBlobId" type="id-ne"/>
|
||||
<field name="testBlobField" type="blob"/>
|
||||
<prim-key field="testBlobId"/>
|
||||
</entity>
|
||||
<!-- =========================================================
|
||||
An entity for testing the field data types
|
||||
========================================================== -->
|
||||
|
||||
Reference in New Issue
Block a user