on 06-16-2022 1:48 PM
Hello Team,
I have a scenario where the data of Four APIs are merged and sent by the source in a single file. Based on the existence of certain node, I need to decide whether I can to send to the particular target or not.
Below is the sample file:
Below are the criteria:
If Element1 exist then send to Target1 else do not send to Target1
If Element2 exist then send to Target2 else do not send to Target2
If Element3 exist then send to Target3 else do not send to Target3
If Element4 exist then send to Target4 else do not send to Target4
Is there any way to send to multiple targets based on condition in CPI?
If this can be achieved in groovy, please share the sample code on how to call HTTP URL
Thanks,
Dinesh
dinesh.95
And what about using a cascade of Routers (or only one if sufficient)?
So check e.g. via XPATH if a node exists and then forward via Sequental or parallel multicast to Target 1 and Target 2.
Or put a second router behind the first router to decide if Target 1 and 2 are needed or only Target 1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Happy to hear it works 🙂
User | Count |
---|---|
65 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.