on 09-05-2012 6:56 AM
Hi.
I'm getting a flatfile into PI and will be able to identify a keyrow based on a value lets call it "x".
Each time I find the row starting with "x" then I want to create a new message and being able to send it to a specific detsination.
All rows bellow the "x" row and until the next "x" row should be in the message.
example:
File payload:
xabcdefghiklmnopqrstuvwxyz
rabcdefghiklmnopqrstuvwxyz
sabcdefghiklmnopqrstuvwxyz
tabcdefghiklmnopqrstuvwxyz
xzyxwvutsrqponmlkihgfedcba
rzyxwvutsrqponmlkihgfedcba
szyxwvutsrqponmlkihgfedcba
tzyxwvutsrqponmlkihgfedcba
Result:
Message 1 based on:
xabcdefghiklmnopqrstuvwxyz
rabcdefghiklmnopqrstuvwxyz
sabcdefghiklmnopqrstuvwxyz
tabcdefghiklmnopqrstuvwxyz
Message 2 based on:
xzyxwvutsrqponmlkihgfedcba
rzyxwvutsrqponmlkihgfedcba
szyxwvutsrqponmlkihgfedcba
tzyxwvutsrqponmlkihgfedcba
Message 1 and 2 has to be able to be routed to different destinations.
How should I solve this without a BPM?
BR
Kalle
Hi,
just send the message to two receivers and in the mapping for each of them remove the unwanted part - pretty simple and no BPM necessary
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
is this dynamic or not ?
I assumed it's not - hence my proposal
a) you can still work with many receivers and many mappings (conditions)
again two receivers and in one interface mappings two operation mappings with conditions
b) you can also do the split in the adapter module itself (custom development)
and you can send how many messages you want to the PI engine
Regards,
Michal Krawczyk
Hi Kalle,
Do you have a fixed number of receivers?
If yes:
Then Michals approach is sufficient. You send the message to more receivers and make the mappings dependend from a condition. You should design your mappings as multi mappings (1:N) so you split for one receiver into more messages. (there was a blog from Jin Shin, but it s gone, thanks to new SCN design). In that case you would need a receiver adapter from Java Runtime.
If not:
You can put an enhanced receiver determination and create for each possible receiver a multimapping.
Regards,
Udo
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.