0001|abc|def|Parent Record1
0001|abc|def|Parent Record2
0002|abc|def|Child Record2
0001|abc|def|Parent Record3
0002|abc|def|Child Record3
0003|abc|def|Child Record31
you can make record definition like this:
0001(Parent Record Def)
. – first Field
. – second Field
. —Third Field
…0002(Clild Record Def)
– first Field
– second Field
—Third Field
…0003(Clild Record Def)
– first Field
– second Field
—Third Field
and in Flow service :
–Get the file
–Repeat loop
– convertTovalue(set iterate true )
—Do maping
—Publish doc
—Branch (check FFiterator=null then Exit from loop)
it will work as you mention above:
" First doc contain the details of this
0001|abc|def…
one doc will be publish containing only this record.
second doc contain the details of this
0001|abc|def…Parent Record
0002|abc|def…Child Record
One doc will be published containing these two records.
and Third doc contain the details of this
0001|abc|def…Parent Record
0002|abc|def…Child Record
0003|abc|def…Child Record
One doc will be published containing these three records.
Basically in total only 3 docs will be published ."
Regards
Mukesh
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services