BaseRecord Project

The BaseRecord project contains two adapter configurations: ContainerReader.adfilesmodel and ContainerWriter.adfilesmodel. The sample project shows how the adapter publishes container records.

In ContainerReader.adfilesmodel, Publication Service parses the container.txt file, processes the lines into objects and publishes them. The read schema stores the base record Employee. The Department record contains the Employee record as the third field.

In ContainerWriter.adfilesmodel, Subscription Service receives the objects, formats them according to the write schema, and writes the output to the outcontainer.txt file. The write schema is configured to write all file records to a separate line. The Department record is no longer a container record and does not have the Employee record as the third field. Instead, the Employee record is now a child record. Therefore, all the records are written to a different line in the output file.