on 03-14-2015 3:29 AM
Hi Experts,
I am working on single sender to two receivers scenario. Sender side payload will be in below format.
-<Update>
-<Target>
-<Field1>
-<Field2>
-<Footer>
-<Filed1>
If Target node exist then send the payload to Receiver-1, if not exists then send the payload to Receiver-2. In Message mapping i gave the 1:2 transformation properly. In Receiver Determination i have given the conditions like below :
(/Update_/Target EX ) to send the message to Receiver-1
(/Update_/[not(Target)] EX ) to send the message to Receiver-2.
but when i am triggering the payload getting "No Receiver could be determined" error.
Please help on this.
Thanks
Boopathi
Hi Boopathi,
You should use 'Count' function to determine existence of a Node in a XML.
The count function returns the count of the occurrence of a field or node in the XML message. Hence in case a field exist in a message, the count return a value greater than Zero and if it doesnt exist, the value returned should ideally be zero.
Reference: To Exist Or Not to Exist is the Question - Process Integration - SCN Wiki
Regards,
Nabendu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.