cancel
Showing results for 
Search instead for 
Did you mean: 

Condition for interface determination

Former Member
0 Kudos

Dear all,

I would like to choose a target inbound interface depending on values in a field.

The problem is, that the source field has occurency 0...unbounded so that I check

the same field twice.

Example:

/TestMessage/Field1 = "A"

AND

/TestMessage/Field1 = "B"

To route the message to the desired inbound interface we need at least two occurencies

of source field "Field1". One with value "A" and one with value "B".

But he seems to check if Field1 is "A" and "B" so he will never use the desired inbound

interface. Do I have a chance to check values of two occurencies of one field or do I need

to use enhanced interface determination?

Thanks

Chris

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Christian

If it does not work, then try

/TestMessage[Field1 = 'A' and Field1 = 'B' EX (as the operator)

there should be "]" after 'B'. I cannot get it to display here

Regards

Asif

Former Member
0 Kudos

Hi Christian,

You interface determination condition should work. e.g for one of my interface I am using following interface determination condition to send the msg to specific inbound interface.

(/p1:MT_Input/Recordset/row/Key = 10 AND /p1:MT_Input/Recordset/row/Key = 20)

The condition check if there is any "Key" with value 10 and othet with value 20 and then only it selects the desired output

inbound. The order of value 20 and 10 doesnt matter. Also only when both the values are there, then also inbound interface is

selected.

Can you provide your sample payload here?

Pooja Pandey

former_member181962
Active Contributor
0 Kudos

Try this way:

/TestMessage/Field1[0] = "A"

and

/TestMessage/Field1[1] = "B"

Regards,

ravi

Former Member
0 Kudos

Does this mean, that the order of incoming messages are always have to be the same?

Would the result of the condition be the same for the following source messages?

<TestMessage>

<Field1>A</Field1>

<Field1>B</Field1>

</TestMessage>

<TestMessage>

<Field1>B</Field1>

<Field1>A</Field1>

</TestMessage>