This chapter provides details about imports that are allowed in each type of retail business object (XSD). A retail business object does not support cyclic reference to another business object.
A base business object can import another non-cyclic base business object.
Topic | Description |
---|---|
Recommendation | Complex business is composed of small non complex business objects. |
Rationale | Base business object can import another base BO that is not a cyclic reference. |
Example |
<xs:schema elementFormDefault="qualified" targetNamespace="http://www.oracle.com/retail/integration/base/bo/XItemDesc/v1" version="1.3" xmlns="http://www.oracle.com/retail/integration/base/bo/XItem/v1" xmlns:XItmSupCtyMfr=http://www.oracle.com/retail/integration/base/bo/XItmSupCtyMfr/v1 ><xs:import namespace="http://www.oracle.com/retail/integration/base/bo/XItmSupCtyMfr/v1" schemaLocation="../../XItmSupCtyMfr/v1/XItmSupCtyMfr.xsd"></xs:import> |
A base business object must import generic localized business object.
Topic | Description |
---|---|
Recommendation | A base business object <BO>, must provision Localization by importing generic localized business object LocOf<BO>. |
Rationale | A base business object must import generic localized business object LocOf<BO>. |
Example |
<xs:schema elementFormDefault="qualified" targetNamespace="http://www.oracle.com/retail/integration/base/bo/XItem/v1" version="1.3" xmlns:LocOfXItem="http://www.oracle.com/retail/integration/base/bo/LocOfXItem/v1" <xs:import namespace="http://www.oracle.com/retail/integration/base/bo/LocOfXItem/v1" schemaLocation="../../../../base/bo/LocOfXItem/v1/LocOfXItem.xsd"> </xs:import> |
A custom business object can import non-cyclic child custom business objects.
Topic | Description |
---|---|
Recommendation | A custom business object can be composed of child custom business objects. |
Rationale | A custom business object, ExtOf<BO> can import custom child business objects, ExtOf<Child Object1> , ExtOf<Child Object2>. |
Example |
<xs:schema elementFormDefault="qualified" targetNamespace="http://www.oracle.com/retail/integration/base/bo/ XItmSupCtyMfr /v1" version="1.3" xmlns="http://www.oracle.com/retail/integration/base/bo/ XItmSupCtyMfr /v1" xmlns:ExtOfXItmSupCtyMfr=http://www.oracle.com/retail/integration/base/bo/ ExtOfXItmSupCtyMfr /v1> <xs:import namespace="http://www.oracle.com/retail/integration/base/bo/ ExtOfXItmSupCtyMfr /v1" schemaLocation="../../ ExtOfXItmSupCtyMfr /v1/ ExtOfXItmSupCtyMfr.xsd"></xs:import> |
A localized business object can import localized child business objects for the same region only.
Topic | Description |
---|---|
Recommendation | A localized business object can compose of localized child business objects with same country code only. |
Rationale | A localized business object, In<BO> can import custom localized business objects In<child BO> with same country code. |
Example |
<xs:schema elementFormDefault="qualified" targetNamespace="http://www.oracle.com/retail/integration/localization/bo/InSupplier/v1" version="1.0" xmlns="http://www.oracle.com/retail/integration/localization/bo/InSupplier/v1" xmlns:InSupplierDtl="http://www.oracle.com/retail/integration/custom/bo/ InSupplierDtl /v1" xmlns:retailDoc="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:import namespace="http://www.oracle.com/retail/integration/custom/bo/EOfInSupplierDesc/v1" schemaLocation="../../../../custom/bo/ InSupplierDtl /v1/InSupplierDtl.xsd"></xs:import> |
A localized business object can import custom localized business objects for the same region only.
Topic | Description |
---|---|
Recommendation | A localized business object can compose of customized localized business objects with same country code only. |
Rationale | A localized business object, In<BO> can import custom localized business objects EOfIn<BO> with same country code. |
Example |
<xs:schema elementFormDefault="qualified" targetNamespace="http://www.oracle.com/retail/integration/localization/bo/InSupplier/v1" version="1.0" xmlns="http://www.oracle.com/retail/integration/localization/bo/InSupplier/v1" xmlns:EOfInSupplierDesc="http://www.oracle.com/retail/integration/custom/bo/EOfInSupplier/v1" xmlns:retailDoc="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:import namespace="http://www.oracle.com/retail/integration/custom/bo/EOfInSupplierDesc/v1" schemaLocation="../../../../custom/bo/EOfInSupplierDesc/v1/EOfInSupplier.xsd"> <retailDoc:annotation> <retailDoc:documentation>It's a referenced element. For detailed description, please refer referenced element doc.</retailDoc:documentation> </retailDoc:annotation> </xs:import> |