on 07-12-2007 1:48 PM
Hi,
I am doing one scenario where I need to determine interface dynamically. So in interface determination I am configured two inbound interfaces with some condition. For that I am using XPath condition.
Following is my source data structure.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_test xmlns:ns0="urn:aa-bb:test">
<Input>
<Input>
<Input1><b>Mr.</b> FirstName LastName</Input1>
</Input>
</Input>
</ns0:MT_test>
<b>Condition:</b>
/p1:MT_QueryDamageIntentClaim1/Input/Input/[substring(Input1,1,3) = 'Mr.']
If I use simple condition (= and not EX) then this is working fine. But here I need to compare first 3 characters from <input1> and so I can not use simple condition.
For this I already referred following blogs and URL but it is not working.
<a href="/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination:///people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
<a href="/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object:///people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
Regards,
Sunil Bhavsar.
Sunil,
is your message type MT_test or MT_QueryDamageIntentClaim1 ?
Regards,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for exampel my condition looks like that:
Left Operand
(/MBGMCR01/IDOC/E1BP2017_GM_HEAD_01[substring(BILL_OF_LADING,1,4) != "0411"] EX )
Operand = EX
Right Operand
leave empty
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sunil,
please post your preview output from the condition editor.
You only have to use the
/MT_QueryDamageIntentClaim1/Input/Input[substring(Input1,1,1) = "1"]
in the left operand
Operand = EX
Right Operand = empty.
only the preview should show:
(/p1:MT_QueryDamageIntentClaim1/Input/Input[substring(Input1,1,1) = "1"] EX )
User | Count |
---|---|
93 | |
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.