MultiSchema Project

The MultiSchema project contains two adapter configurations: ContainerReader2.adfilesmodel and ContainerWriter2.adfilesmodel. The sample project shows how the adapter publishes container records.

This sample project has a more complex schema than the BaseRecord project.

In ContainerReader2.adfilesbomodel, Publication Service parses the container1.txt file, processes the lines into objects and publishes them. Publication Service has two read schemas: the Order record contains the Item and Payment records; the Process record consists of the BackOrder and Shipped records, which contain the Item1 record.

In ContainerWriter2.adfilesbomodel, Subscription Service receives the objects, formats them according to the write schemas, and writes the output to the outcontainer2.txt file. Subscription Service has two write schemas: the Order record is set to write the Order record as it is, with the Item record still contained in it. However, the Process record is set to write all the file records to a different line in the output file. The BackOrder and Shipped records are no longer container records and do not have the Item1 record. Item1 record is a write child record and the Process record is at the parent level.