Defining write Using Native Schema Constructs

6-40 Oracle Fusion Middleware Users Guide for Technology Adapters

6.2.2.13 Defining LookAhead

The LookAhead construct is of the following types: ■ Type 1: LookAhead X chars, read the value from a position using a style, and match against the specified literal. ■ Type 2: LookAhead X chars, read the value from a position using a style, and store that value in a variable to be used later. LookAhead: Type 1 LookAhead X chars, read the value from a position using a style, and match against the specified literal. Native Data Format to Be Translated: Fred,2 Old Street, Old Town,Manchester,20-08-1954,0161-499-1718,YES 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=LookAhead complexType sequence minOccurs=0 nxsd:lookAhead=70 nxsd:lookFor=YES element name=PersonName type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy=quot; element name=Address type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy=quot; 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 schema Translated XML Using Native Schema: LookAhead xmlns=http:xmlns.oracle.compcbpelnxsdsmoketest PersonNameFredPersonName Address2 Old Street, Old Town,ManchesterAddress DOB20-08-1954DOB Telephone0161-499-1718Telephone LookAhead LookAhead: Type 2 In native schema, LookAhead X chars, read the value from a position using a style, and store that value in a variable to be used later. Native Format Builder Wizard 6-41 Native Data Format to Be Translated: Name1,2 Old Street, Old Town,Manchester,20-08-1954,0161-499-1718, YES Name2,2 Old Street, Old Town,Manchester,20-08-1954,0161-499-1718, NO Name3,2 Old Street, Old Town,Manchester,20-08-1954,0161-499-1718, NO Name4,2 Old Street, Old Town,Manchester,20-08-1954,0161-499-1718, YES 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 -- nxsd:lookAhead=70 nxsd:scan=3 -- element name=LookAhead complexType choice maxOccurs=unbounded nxsd:choiceCondition={x} nxsd:lookAhead=70 nxsd:scanLength=3 nxsd:assignTo={x} element name=Record1 type=string nxsd:conditionValue=YES nxsd:style=terminated nxsd:terminatedBy=, nxsd:skipMode=after nxsd:skipUntil={eol} element name=Record2 type=string nxsd:conditionValue=NO nxsd:style=terminated nxsd:terminatedBy=, nxsd:skipMode=after nxsd:skipUntil={eol} choice complexType element schema Translated XML Using Native Schema: LookAhead xmlns=http:xmlns.oracle.compcbpelnxsdsmoketest Record1Name1Record1 Record2Name2Record2 Record2Name3Record2 Record1Name4Record1 LookAhead

6.2.2.14 Defining outboundHeader

The actual content of outboundHeader can use variables, specifically {eol}. When headerLines and outboundHeader both are available, outboundHeader takes precedence in the outbound. Note: In the inbound direction, the Skipping Headers feature is supported. Only predefined variables can be used in a header because other variables might either not be accessible or would have only literals.