on 03-23-2010 2:57 PM
I'm working with PI7.1
I have 2 operation mapping.
I need set a condition like this:
If xpath field exist then go to Operation 1
else (if not exist) then go to Operation 2.
No problem for first point but.... How to set condition ELSE??
or NOT EXIST?
any suggestion?
thanks in advance
PS: i don't want use BPM
Hi,
You can see this blogs and come up with an expression:
/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
/people/suraj.sr/blog/2006/01/05/multiple-inbound-interfaces-within-a-service
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i'm not talking about a node.
I'm talking about a field.
so if i use this condition:
if Source_variable (there you can find not equals syumbol) 0 (Means source node not exists) corresponding mapping
condition will be always satisfacted.
Maybe i'm not explained correctly.
My situation is follow:
DataType
- Row
- field1
- field2
- field3 ******
Field3 sometimes exist...sometimes no. If exist i need execute one mapping (mappingA). Else a different one (mappingB).
I hope now you understand me.
> DataType
> - Row
> - field1
> - field2
> - field3 ******
>
> Field3 sometimes exist...sometimes no. If exist i need execute one mapping (mappingA). Else a different one (mappingB).
> I hope now you understand me.
/p1:DataType[ count (Row/field3) = 0] EX
or
/p1:DataType[ count (//field3) = 0] EX
This is valid, when no field3 is available in the whole structure, which is the opposite to:
/p1:DataType/Row/field3 EX
Edited by: Stefan Grube on Mar 24, 2010 9:42 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On receiver determination. clik on button [] to add another line as "Or" condition and put your logic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.