Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3280

Mapping exception

$
0
0

Hi Experts,

 

I have two receivers and my source xml needs route to receivers based on the condition.

If it goes to wrong receiver, I get mapping exception because of different logic.

 

Below are the conditions that i am using for routing, not sure i am getting errors. Please help me on this.

 

For ReceiverA:

 

(((/Source1/Data/Node/SubNode/Value = A) and (/Source1/Data/Node/DiffNode/SecondValue = "ABC" or /Source1/Data/Node/DiffNode/SecondValue = "DEF")) or ((/Source1/Data/Node/SubNode/Value = B) and (/Source1/Data/Node/DiffNode/SecondValue = "ABC" or /Source1/Data/Node/DiffNode/SecondValue = "DEF")) EX )

 

For ReceiverB:

 

(((/Source1/Data/Node/SubNode/Value = A) and (/Source1/Data/Node/DiffNode/SecondValue != "ABC" or /Source1/Data/Node/DiffNode/SecondValue != "DEF")) or ((/Source1/Data/Node/SubNode/Value = B) and (/Source1/Data/Node/DiffNode/SecondValue != "ABC" or /Source1/Data/Node/DiffNode/SecondValue != "DEF")) EX )

 

Logic is:

 

((If Value is equals to 'A') and (If SecondValue is equals to "ABC" or "DEF")) or ((If Value is equals to 'B') and (If SecondValue is equals to "ABC" or "DEF"))   ---> route to receiverA

 

((If Value is equals to 'A') and (If SecondValue is not equals to "ABC" or "DEF")) or ((If Value is equals to 'B') and (If SecondValue is not equals to "ABC" or "DEF"))   ---> route to receiverB

 

Appreciate your inputs on this. Thank you.


Viewing all articles
Browse latest Browse all 3280

Trending Articles