Conditional Processing Using Native Schema Constructs

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 Native Format Builder Wizard 6-27 complexType element sequence complexType group name=LineItems sequence element name=Id type=string nxsd:style=fixedLength nxsd:length=10 nxsd:padStyle=none element name=Quantity type=string nxsd:style=fixedLength nxsd:identifierLength=2 element name=Price type=string nxsd:style=terminated nxsd:terminatedBy={eol} sequence group -- SO -- element name=SalesOrder type=tns:SOType complexType name=SOType sequence element name=Date type=string nxsd:style=terminated nxsd:terminatedBy=| element name=Item type=string nxsd:style=terminated nxsd:terminatedBy=| element name=Quantity type=string nxsd:style=terminated nxsd:terminatedBy={eol} element name=Buyer type=string nxsd:style=terminated nxsd:terminatedBy={eol} sequence complexType -- INV -- element name=Invoice type=tns:INVType complexType name=INVType sequence element name=Date type=string nxsd:style=terminated nxsd:terminatedBy=; element name=Purchaser type=string nxsd:style=terminated nxsd:terminatedBy=; element name=Seller type=string nxsd:style=terminated nxsd:terminatedBy=; element name=Item type=string nxsd:style=terminated nxsd:terminatedBy=; element name=Price type=string nxsd:style=terminated nxsd:terminatedBy=; element name=Quantity type=string nxsd:style=terminated nxsd:terminatedBy=; element name=TotalPrice type=string nxsd:style=terminated nxsd:terminatedBy={eol} sequence complexType schema Translated XML Using the Native Schema: container xmlns=http:www.oracle.comiasprocessconnect PurchaseOrder Date28062004Date 6-28 Oracle Fusion Middleware Users Guide for Technology Adapters BuyerABCD Inc.Buyer SupplierOracleSupplier Items Line-Item IdOracleAppsId Quantity50Quantity Price70,000.00Price Line-Item Line-Item IdDatabase Id Quantity12Quantity Price30,000.00Price Line-Item Line-Item IdProcessConId Quantity10Quantity Price40,000.00Price Line-Item Items PurchaseOrder PurchaseOrder Date01072004Date BuyerEFGH Inc.Buyer SupplierOracleSupplier Items Line-Item IdWebsphere Id Quantity50Quantity Price70,000.00Price Line-Item Line-Item IdDB2 Id Quantity12Quantity Price30,000.00Price Line-Item Line-Item IdEclipse Id Quantity10Quantity Price40,000.00Price Line-Item Items PurchaseOrder SalesOrder Date29062004Date ItemOracle AppsItem Quantity5Quantity BuyerNavneet SinghBuyer SalesOrder PurchaseOrder Date28062004Date BuyerIJKL Inc.Buyer SupplierOracleSupplier Items Line-Item IdWeblogic Id Quantity50Quantity Price70,000.00Price Line-Item Line-Item IdTuxedo Id Native Format Builder Wizard 6-29 Quantity12Quantity Price30,000.00Price Line-Item Line-Item IdJRockit Id Quantity10Quantity Price40,000.00Price Line-Item Items PurchaseOrder Invoice Date30062004Date PurchaserNavneet SinghPurchaser SellerOracleSeller ItemOracle AppsItem Price5Price Quantity70,000.00Quantity TotalPrice350,000.00TotalPrice Invoice container Processing Elements Within a Sequence 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 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 sequence maxOccurs=unbounded 6-30 Oracle Fusion Middleware Users Guide for Technology Adapters element ref=tns:PurchaseOrder minOccurs=0 nxsd:startsWith=PO element ref=tns:SalesOrder minOccurs=0 nxsd:startsWith=SO element ref=tns:Invoice minOccurs=0 nxsd:startsWith=IN sequence 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 complexType element sequence complexType group name=LineItems sequence element name=Id type=string nxsd:style=fixedLength nxsd:length=10 nxsd:padStyle=none element name=Quantity type=string nxsd:style=fixedLength nxsd:identifierLength=2 element name=Price type=string nxsd:style=terminated nxsd:terminatedBy={eol} sequence group -- SO -- element name=SalesOrder type=tns:SOType complexType name=SOType sequence element name=Date type=string nxsd:style=terminated nxsd:terminatedBy=| element name=Item type=string nxsd:style=terminated nxsd:terminatedBy=| element name=Quantity type=string nxsd:style=terminated nxsd:terminatedBy={eol} element name=Buyer type=string nxsd:style=terminated nxsd:terminatedBy={eol} sequence Native Format Builder Wizard 6-31 complexType -- INV -- element name=Invoice type=tns:INVType complexType name=INVType sequence element name=Date type=string nxsd:style=terminated nxsd:terminatedBy=; element name=Purchaser type=string nxsd:style=terminated nxsd:terminatedBy=; element name=Seller type=string nxsd:style=terminated nxsd:terminatedBy=; element name=Item type=string nxsd:style=terminated nxsd:terminatedBy=; element name=Price type=string nxsd:style=terminated nxsd:terminatedBy=; element name=Quantity type=string nxsd:style=terminated nxsd:terminatedBy=; element name=TotalPrice type=string nxsd:style=terminated nxsd:terminatedBy={eol} sequence complexType schema Translated XML Using the Native Schema: container xmlns=http:www.oracle.comiasprocessconnect PurchaseOrder Date28062004Date BuyerABCD Inc.Buyer SupplierOracleSupplier Items Line-Item IdOracleAppsId Quantity50Quantity Price70,000.00Price Line-Item Line-Item IdDatabase Id Quantity12Quantity Price30,000.00Price Line-Item Line-Item IdProcessConId Quantity10Quantity Price40,000.00Price Line-Item Items PurchaseOrder PurchaseOrder Date01072004Date BuyerEFGH Inc.Buyer SupplierOracleSupplier Items Line-Item IdWebsphere Id Quantity50Quantity Price70,000.00Price Line-Item 6-32 Oracle Fusion Middleware Users Guide for Technology Adapters Line-Item IdDB2 Id Quantity12Quantity Price30,000.00Price Line-Item Line-Item IdEclipse Id Quantity10Quantity Price40,000.00Price Line-Item Items PurchaseOrder SalesOrder Date29062004Date ItemOracle AppsItem Quantity5Quantity BuyerNavneet SinghBuyer SalesOrder PurchaseOrder Date28062004Date BuyerIJKL Inc.Buyer SupplierOracleSupplier Items Line-Item IdWeblogic Id Quantity50Quantity Price70,000.00Price Line-Item Line-Item IdTuxedo Id Quantity12Quantity Price30,000.00Price Line-Item Line-Item IdJRockit Id Quantity10Quantity Price40,000.00Price Line-Item Items PurchaseOrder Invoice Date30062004Date PurchaserNavneet SinghPurchaser SellerOracleSeller ItemOracle AppsItem Price5Price Quantity70,000.00Quantity TotalPrice350,000.00TotalPrice Invoice container

6.2.2.7 Defining Dates

This example shows how to define dates. Native Data Format to Be Translated: 111602241102 11-20-2002 23112002 01022003 01:02 Native Format Builder Wizard 6-33 01022003 03:04:05 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 nxsd:version=NXSD element name=dateformat complexType sequence element name=StartDate type=dateTime nxsd:dateFormat=MMddyy nxsd:style=fixedLength nxsd:length=8 element name=EndDate type=dateTime nxsd:dateFormat=ddMMyy nxsd:style=terminated nxsd:terminatedBy={eol} element name=Milestone type=dateTime nxsd:dateFormat=MM-dd-yyyy nxsd:style=terminated nxsd:terminatedBy={eol} element name=DueDate type=dateTime nxsd:dateFormat=ddMMyyyy nxsd:style=terminated nxsd:terminatedBy={eol} element name=Date type=dateTime nxsd:dateFormat=MMddyyyy hh:mm nxsd:style=terminated nxsd:terminatedBy={eol} element name=Date type=dateTime nxsd:dateFormat=MMddyyyy hh:mm:ss nxsd:style=terminated nxsd:terminatedBy={eol} sequence complexType element schema Translated XML Using the Native Schema: dateformat xmlns=http:xmlns.oracle.compcbpelnxsdsmoketest StartDate2002-11-16T00:00:00StartDate EndDate2002-11-24T00:00:00EndDate Milestone2002-11-20T00:00:00Milestone DueDate2002-11-23T00:00:00DueDate Date2003-01-02T01:02:00Date Date2003-01-02T03:04:05Date dateformat The following example depicts the use of nxsd:dateParsingMode=laxstrict and locale support. Native Data Format to Be Translated: 111602241102 11-20-2002 23112002 01022003 01:02 01022003 03:04:05 Thu, 26 May 2005 15:50:11 India Standard Time Do, 26 Mai 2005 15:43:10 Indische Normalzeit Note: nxsd:dateParsingMode=laxstrict and locale support have been added to the existing date format.