Defining Arrays Using Native Schema Constructs

6-20 Oracle Fusion Middleware Users Guide for Technology Adapters All Cells Separated by the Same Mark, but the Last Cell Terminated by a Different Mark Bounded The following sections explain the format of the data to be translated, the native schema, and the translated XML. Native Data Format to Be Translated: Smith, John,1 Old Street, Old Town, Manchester,,0161-499-1717. Fred,2 Old Street, Old Town,Manchester,20-08-1954,0161-499-1718. Smith, Bob,,,0161-499-1719. Native Schema: ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd targetNamespace=http:www.oracle.comiasprocessconnect elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD element name=array complexType sequence element name=Member maxOccurs=unbounded nxsd:style=array nxsd:cellSeparatedBy={eol} nxsd:arrayTerminatedBy= complexType sequence element name=Name type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy= element name=Address type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy= element name=DOB type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy= element name=Telephone type=string nxsd:style=terminated nxsd:terminatedBy=. nxsd:quotedBy= sequence complexType element sequence complexType element schema Translated XML Using the Native Schema: array xmlns=http:www.oracle.comiasprocessconnect Member NameSmith, JohnName Address1 Old Street, Old Town, ManchesterAddress DOBDOB Telephone0161-499-1717Telephone Member Member NameFredName Address2 Old Street, Old Town,ManchesterAddress Native Format Builder Wizard 6-21 DOB20-08-1954DOB Telephone0161-499-1718Telephone Member Member NameSmith, BobName AddressAddress DOBDOB Telephone0161-499-1719Telephone Member array All Cells Separated by the Same Mark, Including the Last Cell Unbounded The following sections explain the format of the data to be translated, the native schema, and the translated XML. Native Data Format to Be Translated: Smith, John,1 Old Street, Old Town, Manchester,,0161-499-1717. Fred,2 Old Street, Old Town,Manchester,20-08-1954,0161-499-1718. Smith, Bob,,,0161-499-1719. Native Schema: ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd targetNamespace=http:www.oracle.comiasprocessconnect elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD element name=array complexType sequence element name=Member maxOccurs=unbounded nxsd:style=array nxsd:cellSeparatedBy=\r\n complexType sequence element name=Name type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy= element name=Address type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy= element name=DOB type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy= element name=Telephone type=string nxsd:style=terminated nxsd:terminatedBy=. nxsd:quotedBy= sequence complexType element sequence complexType element schema Translated XML Using the Native Schema: 6-22 Oracle Fusion Middleware Users Guide for Technology Adapters array xmlns=http:www.oracle.comiasprocessconnect Member NameSmith, JohnName Address1 Old Street, Old Town, ManchesterAddress DOBDOB Telephone0161-499-1717Telephone Member Member NameFredName Address2 Old Street, Old Town,ManchesterAddress DOB20-08-1954DOB Telephone0161-499-1718Telephone Member Member NameSmith, BobName AddressAddress DOBDOB Telephone0161-499-1719Telephone Member array Cells Not Separated by Any Mark, but the Last Cell Terminated by a Mark Bounded The following sections explain the format of the data to be translated, the native schema, and the translated XML. Native Data Format to Be Translated: Smith, John,1 Old Street, Old Town, Manchester,,0161-499-1717 Fred,2 Old Street, Old Town,Manchester,20-08-1954,0161-499-1718 Smith, Bob,,,0161-499-1719 Native Schema: ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd targetNamespace=http:www.oracle.comiasprocessconnect elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD element name=array complexType sequence element name=Member maxOccurs=unbounded nxsd:style=array nxsd:arrayTerminatedBy= complexType sequence element name=Name type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy= element name=Address type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy= element name=DOB type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy= element name=Telephone type=string nxsd:style=terminated nxsd:terminatedBy=\r\n nxsd:quotedBy= sequence Native Format Builder Wizard 6-23 complexType element sequence complexType element schema Translated XML Using the Native Schema: array xmlns=http:www.oracle.comiasprocessconnect Member NameSmith, JohnName Address1 Old Street, Old Town, ManchesterAddress DOBDOB Telephone0161-499-1717Telephone Member Member NameFredName Address2 Old Street, Old Town,ManchesterAddress DOB20-08-1954DOB Telephone0161-499-1718Telephone Member Member NameSmith, BobName AddressAddress DOBDOB Telephone0161-499-1719Telephone Member array The Number of Cells Being Read from the Native Data The following sections explain the format of the data to be translated, the native schema, and the translated XML. Native Data Format to Be Translated: 3Smith, John,1 Old Street, Old Town, Manchester,,0161-499-1717 Fred,2 Old Street, Old Town,Manchester,20-08-1954,0161-499-1718 Smith, Bob,,,0161-499-1719 Native Schema: ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd targetNamespace=http:www.oracle.comiasprocessconnect elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD element name=arrayidentifierlength complexType sequence element name=Member maxOccurs=unbounded nxsd:style=array nxsd:arrayIdentifierLength=1 complexType 6-24 Oracle Fusion Middleware Users Guide for Technology Adapters sequence element name=Name type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy= element name=Address type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy= element name=DOB type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy= element name=Telephone type=string nxsd:style=terminated nxsd:terminatedBy=\r\n nxsd:quotedBy= sequence complexType element sequence complexType element schema Translated XML Using the Native Schema arrayidentifierlength xmlns=http:www.oracle.comiasprocessconnect Member NameSmith, JohnName Address1 Old Street, Old Town, ManchesterAddress DOBDOB Telephone0161-499-1717Telephone Member Member NameFredName Address2 Old Street, Old Town,ManchesterAddress DOB20-08-1954DOB Telephone0161-499-1718Telephone Member Member NameSmith, BobName AddressAddress DOBDOB Telephone0161-499-1719Telephone Member arrayidentifierlength Explicit Array Length The following sections explain the format of the data to be translated, the native schema, and the translated XML. Native Data Format to Be Translated: 3;John;Steve;Paul;Todd; Native Schema: ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd targetNamespace=http:xmlns.oracle.compcbpelnxsdsmoketest elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars Native Format Builder Wizard 6-25 nxsd:version=NXSD element name=array annotation appinfo nxsd:variables nxsd:variable name=len nxsd:variables appinfo annotation complexType sequence element name=TotalMembers type=string nxsd:style=terminated nxsd:terminatedBy=; annotation appinfo nxsd:variables nxsd:assign name=len value={0} nxsd:variables appinfo annotation element element name=Member type=string minOccurs=0 maxOccurs=unbounded nxsd:style=array,terminated nxsd:arrayLength={len} nxsd:terminatedBy=; sequence complexType element schema Translated XML Using the Native Schema: array xmlns=http:xmlns.oracle.compcbpelnxsdsmoketest TotalMembers3TotalMembers MemberJohnMember MemberSteveMember MemberPaulMember array

6.2.2.6 Conditional Processing

This section provides the following examples of conditional processing: ■ Processing One Element Within a Choice Model Group Based on the Condition ■ Processing Elements Within a Sequence Model Group Based on the Condition Processing One Element Within a Choice Model Group Based on the Condition The following sections explain the format of the data to be translated, the native schema, and the translated XML. Native Data Format to Be Translated: PO28062004|ABCD Inc.|Oracle OracleApps025070,000.00 Database 021230,000.00 ProcessCon021040,000.00 6-26 Oracle Fusion Middleware Users Guide for Technology Adapters PO01072004|EFGH Inc.|Oracle Websphere 025070,000.00 DB2 021230,000.00 Eclipse 021040,000.00 SO29062004|Oracle Apps|5 Navneet Singh PO28062004|IJKL Inc.|Oracle Weblogic 025070,000.00 Tuxedo 021230,000.00 JRockit 021040,000.00 IN30062004;Navneet Singh;Oracle;Oracle Apps;5;70,000.00;350,000.00 Native Schema: ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd xmlns:tns=http:www.oracle.comiasprocessconnect targetNamespace=http:www.oracle.comiasprocessconnect elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD element name=container complexType choice maxOccurs=unbounded nxsd:choiceCondition=fixedLength nxsd:length=2 element ref=tns:PurchaseOrder nxsd:conditionValue=PO element ref=tns:SalesOrder nxsd:conditionValue=SO element ref=tns:Invoice nxsd:conditionValue=IN choice complexType element -- PO -- element name=PurchaseOrder type=tns:POType complexType name=POType sequence element name=Date type=string nxsd:style=terminated nxsd:terminatedBy= element name=Buyer type=string nxsd:style=surrounded nxsd:surroundedBy=| element name=Supplier type=string nxsd:style=terminated nxsd:terminatedBy={eol} element name=Items complexType sequence element name=Line-Item minOccurs=3 maxOccurs=3 complexType group ref=tns:LineItems complexType element sequence