-
1. Re: BeanIO Reader and Writer Multiple Record Types
cfang Jun 19, 2017 3:59 PM (in response to richardmoore)For the item processor to enhance the data item with more info from database, I think it still seems reasonable operations.
Not so sure about the 4 special records at the beginning of the output file. You can check if BeanIO library itself supports writing output headers. Or you can extend JBeret's BeanIOWriter to write these 4 special records conditionally. Or you can trick the BeanIOReader to produce such 4 items that will map to the 4 special rows in the output.
-
2. Re: BeanIO Reader and Writer Multiple Record Types
richardmoore Jun 20, 2017 12:50 PM (in response to cfang)I have worked out an example. Is therSe a way to attach the java, xml and sample output?
Attachment of code, jsl, and mappings uploaded.
-
3. Re: BeanIO Reader and Writer Multiple Record Types
cfang Jun 19, 2017 8:28 PM (in response to richardmoore)On the top of the page, under the Create tab (to the right of a Pen icon), the pulldown menu has Upload Files submenu, where you can upload and share files. I haven't used it either, but you can give it a try.
-
4. Re: BeanIO Reader and Writer Multiple Record Types
cfang Jun 20, 2017 1:35 PM (in response to richardmoore)Thanks for sharing your example!