on 08-07-2007 5:01 PM
All,
we have the following scenario - we are getting a flat file into XI. The file is converted into an xml message (<source> message) in content conversion with the records/message setting as 1000. So, the input file is split into messages with 1000 records/each. (except for the last one).
Now - we map these messages into another message (<sourceIdx> message) to add a counter node to the record structure (rest of the structure is the exact same). The question is we need to maintain the counter across the messages.
Meaning - if there are 100 <source> messages that are mapped to 100 <sourceIdx> messages. The first record in the first message will have the counter as 1 and the last one as 1000. we want the first record in the second message to start at 1001 and not 1 again.
How can we do this? Also - is there a way - where you can add this counter during the content conversion itself. That will save us this mapping.
Thanks,
It might be possible to use a java pointer and point it at a reserved memory location in the XI box, then just modify and call this pointer in a UDF. Another possibility is to write a file with your number directly from the UDF to a place on the XI box and just call and modify this file with the UDF. I don't know if the second would actually work, but those are the non-XI involved way of doing it.
Another option would be to explore using a BPM that would have your variable in it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.