This appendix contains the file content to follow along with the sample tutorial. The Prerequisites and setup chapter provides instructions for setting up your environment to match the sample. Use the links below to jump to the corresponding content:
The following contains the example code for the sample tutorial data model. Follow this link to return to the Prerequisites and setup instructions.
<?xml version="1.0" encoding="UTF-8"?> <!--XML schema generated from EBX™5 DMA instance [reference=basicSupplyChain] on Tue Jun 19 17:23:43 MDT 2018 by user [admin].--> <xs:schema xmlns:osd="urn:ebx-schemas:common_1.0" xmlns:fmt="urn:ebx-schemas:format_1.0" xmlns:ebxbnd="urn:ebx-schemas:binding_1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ebxs="urn:ebx-schemas:session_1.0"> <xs:import namespace="urn:ebx-schemas:common_1.0" schemaLocation="http://schema.orchestranetworks.com/common_1.0.xsd"/> <xs:import namespace="urn:ebx-schemas:session_1.0" schemaLocation="http://schema.orchestranetworks.com/session_1.0.xsd"/> <xs:element name="root" osd:access="--"> <xs:complexType> <xs:sequence> <xs:element name="factories" minOccurs="0" maxOccurs="unbounded"> <xs:annotation> <xs:documentation xml:lang="en-US"> <osd:label>Factories</osd:label> </xs:documentation> <xs:appinfo> <osd:table> <primaryKeys>/factory </primaryKeys> </osd:table> </xs:appinfo> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="factory" type="xs:string" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation xml:lang="en-US"> <osd:label>Factory Name</osd:label> </xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="plants" minOccurs="0" maxOccurs="unbounded"> <xs:annotation> <xs:documentation xml:lang="en-US"> <osd:label>Assembly Plants</osd:label> </xs:documentation> <xs:appinfo> <osd:table> <primaryKeys>/plantName </primaryKeys> </osd:table> </xs:appinfo> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="plantName" type="xs:string" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation xml:lang="en-US"> <osd:label>Plant Name</osd:label> </xs:documentation> </xs:annotation> </xs:element> <xs:element name="supplier" type="xs:string" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation xml:lang="en-US"> <osd:label>Supplier</osd:label> </xs:documentation> <xs:appinfo> <osd:otherFacets> <osd:tableRef> <tablePath>/root/factories</tablePath> </osd:tableRef> </osd:otherFacets> </xs:appinfo> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="store" minOccurs="0" maxOccurs="unbounded"> <xs:annotation> <xs:documentation xml:lang="en-US"> <osd:label>Stores</osd:label> </xs:documentation> <xs:appinfo> <osd:table> <primaryKeys>/storeName </primaryKeys> </osd:table> </xs:appinfo> </xs:annotation> <xs:complexType> <xs:sequence> <xs:element name="storeName" type="xs:string" minOccurs="1" maxOccurs="1"> <xs:annotation> <xs:documentation xml:lang="en-US"> <osd:label>Store Name</osd:label> </xs:documentation> </xs:annotation> </xs:element> <xs:element name="supplier" type="xs:string" minOccurs="0" maxOccurs="1"> <xs:annotation> <xs:documentation xml:lang="en-US"> <osd:label>Supplier</osd:label> </xs:documentation> <xs:appinfo> <osd:otherFacets> <osd:tableRef> <tablePath>/root/plants</tablePath> </osd:tableRef> </osd:otherFacets> </xs:appinfo> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
Follow this link to return to the Prerequisites and setup instructions.
The sample table data below is for the Assembly Plants table.
<?xml version="1.0" encoding="UTF-8" ?> <!--XML content generated for /root/plants in data set basicSupplyChain in data space Reference on 2018-07-31T07:38:51.649 by user [admin].--> <root> <plants> <plantName>Eastern Plant</plantName> <supplier>Northern Factory</supplier> </plants> <plants> <plantName>Midwest Plant</plantName> <supplier>Northern Factory</supplier> </plants> <plants> <plantName>Western Plant</plantName> <supplier>Southern Factory</supplier> </plants> </root>
The sample table data below is for the Factories table.
<?xml version="1.0" encoding="UTF-8" ?> <!--XML content generated for /root/factories in data set basicSupplyChain in data space Reference on 2018-07-31T07:39:18.494 by user [admin].--> <root> <factories> <factory>Northern Factory</factory> </factories> <factories> <factory>Southern Factory</factory> </factories> </root>
The sample table data below is for the Stores table.
<?xml version="1.0" encoding="UTF-8" ?> <!--XML content generated for /root/store in data set basicSupplyChain in data space Reference on 2018-07-31T07:39:56.654 by user [admin].--> <root> <store> <storeName>Store A</storeName> <supplier>Eastern Plant</supplier> </store> <store> <storeName>Store B</storeName> <supplier>Midwest Plant</supplier> </store> <store> <storeName>Store C</storeName> <supplier>Western Plant</supplier> </store> <store> <storeName>Store D</storeName> <supplier>Western Plant</supplier> </store> </root>
Follow this link to return to the Prerequisites and setup instructions.