on 10-05-2009 8:52 PM
Hello,
I have found a couple of other postings, but not a definitive answer to the following requirement:
In a conditional interface determination I would like to check whether a certain node exists, if yes select receiver inteface A, if no take receiver interface B.
How would I use an expression to check whether the node does not exist?
Example Message:
<Submission>
<Item/>
</Submission>
How should the expression look like if I want to select a receiver interface if <item/> does NOT exist.
Hello,
just tried the approach suggested but it did not work.
I will describe the scenario in detail again to illustrate what I want to achieve:
I use a "dummy sender interface" using a structure with /submission as root node. One of the possible messages is an XML with this root node. The other message is just a flat file that I will dump using a file receiver.
Receiver for both messages is the same, only the interfaces are different.
So I wanted to apply a check "If root node submission does not exist, then take interface a, otherwise b". So the flat file should be routed on to interface a, the "real" xml file with root node submission to interface b.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please use "EXISTS" on the right hand side of the operand and check.
Regards,
Vishnu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How would I use an expression to check whether the node does not exist?
Check this WIKI section: http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
Refer the last but one condition expression
How should the expression look like if I want to select a receiver interface if <item/> does NOT exist
/Submission/[not(Item]
Check it.....the procedure is the same for Condition Editor of Receiver Determination and Interface Determination
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.