Expected Result
Publication Service parses the promote.txt file and publishes the objects. Subscription Service receives the objects, formats and writes them to the outpromote.txt and outpromote2.txt files according to their write schemas.
Fields in the input file are separated by commas and Item is a separate line. In PromoteWriter.adfilesmodel, the output files are formatted with semicolons. In PromoteWriter2.adfilesmodel, the Item line is promoted to the level of the Order line.
You can view the example results in the TIBCO_HOME\adapter\adfiles\version_num\examples\writer\output directory. The input file and output results are shown as follows:
File Name | File Content |
---|---|
promote.txt |
Order, ID41678, 20May2000 Item, GigaWidget, 60, $75 Item, MegaBucket, 48, $125 Customer, Hopkins Associates, ID26490 Order, ID41680, 20May2000 Item, Rt.Clopper, 40, $100 Item, Lt.Clopper, 50, $100 Customer, Jersey WebInovaters, ID46786 |
outpromote.txt |
Order;ID41678;20May2000 Item;GigaWidget;60;$75 Item;MegaBucket;48;$125 Customer;Hopkins Associates;ID26490 Order;ID41680;20May2000 Item;Rt.Clopper;40;$100 Item;Lt.Clopper;50;$100 Customer;Jersey WebInovaters;ID46786 |
outpromote2.txt |
Order;ID41678;20May2000;Item;GigaWidget;60;$75;Item;MegaBucket;48;$125 Customer;Hopkins Associates;ID26490 Order;ID41680;20May2000;Item;Rt.Clopper;40;$100;Item;Lt.Clopper;50;$100 Customer;Jersey WebInovaters;ID46786 |
Copyright © TIBCO Software Inc. All rights reserved.