on 01-06-2015 1:08 AM
Hi,
Currently I am working on File (XML file) to Proxy scenario. We are sending big XML files with Header node and Trailer node (which contains Trailer count) to the R3 system. Due to large no. of records tables are getting locked in the R3 system while updating. I need to split the XML file with correct Trailer count, so that I can send small files with say 100 records to the R3 system that too at an interval of few seconds. Please let me know whether it's possible or not. If yes, how to proceed further to do this.
For example:
Original File
<Header></Header>
<Record></Record>
<Record></Record>
<Record></Record>
<Record></Record>
<Record></Record>
<Trailer>
<RecordCount>5</RecordCount>
</Trailer>
Output File
File 1
<Header></Header>
<Record></Record>
<Record></Record>
<Trailer>
<RecordCount>2</RecordCount>
</Trailer>
After few seconds second files should be created.
File 2
<Header></Header>
<Record></Record>
<Record></Record>
<Trailer>
<RecordCount>2</RecordCount>
</Trailer>
After few seconds third files should be created and so on.
File 3
<Header></Header>
<Record></Record>
<Trailer>
<RecordCount>1</RecordCount>
</Trailer>
Thanks in advance.
Dear Vaibhav,
Please check the below link.
Multi-Mapping using Java Mapping - Process Integration - SCN Wiki
But instead of java mapping , I will suggest to use 1:N mapping with out ccBPM . It will be easy to understand .
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Rudra,
Thanks for the quick response.
But in this case the issue is, getting the correct record count in the Trailer. Another issue is we will have same number of Header node and Trailer node as of Record node under each row.
for example: I am getting this structure after transformation
<Row>
<Header></Header>
<Header></Header>
<Record></Record>
<Record></Record>
<Trailer></Trailer>
<Trailer></Trailer>
</Row>
Actually it should be
<Row>
<Header></Header>
<Record></Record>
<Record></Record>
<Trailer>
<RecordCount>2</RecordCount>
</Trailer>
<Row>
Actually it should be only 1 Header and 1 Trailer for each row. Also Record count in the trailer is causing an issue.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.