on 03-27-2008 5:12 PM
All,
Inside the BPM there is a switch condition -
which checks whether ( InXML\Item1\Key = "COMPNAME" AND InXML\Item1\Value="HRB" ) - if this condition is true, then it sends the whole xml to a particular receiver.
For this condition to work - does the Item1 node (with COMPNAME key value) be first? Currently we are getting it in random places within the Item1 nodes.
Sample Input message -
<InXML>
<Item1>
<Key>CODE</Key>
<Value>CC</Value>
</Item1>
<Item1>
<Key>COMPNAME</Key>
<Value>HRB</Value>
</Item1>
<Item1>
<Key>REGSTATUS</Key>
<Value>Y</Value>
</Item1>
<Item1>
<Key></Key>
<Value></Value>
</Item1>
</InXML>
Thanks.
All, thanks for the input. There is a checkbox while we specify the xPath in the BPM condition editor for multiline elements. That resolved my issue, without changing anything.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In a branch of a switch case you specify a condition in a branch, when the msg comes it will check the key and value for each item1(in your case) and execute the branch accordingly. if no branch condition satisfies then executes Otherwise branch.
**Reward points if helpful
--Sankar Choudhury
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The following weblog will give you some hints:
XPath to show the path (Multiple Receivers)
/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
Liang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
yes it must be first always,
because PI read the IDOC from top to end and if you have COMPNAME later of field VALUE the condicion will be false always
Thanks
Rodrigo
Edited by: Rodrigo Pertierra on Mar 27, 2008 2:19 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think my initial question is not clear... let me rephrase it.
In the following XML there are 4 Item1 nodes. Does the one that is bold (this is the one that will satisfy the condition), need to be the first in the 4 or will it work immaterial of the position within the Item1 node collection?
<InXML>
<Item1>
<Key>CODE</Key>
<Value>CC</Value>
</Item1>
<Item1>
<Key>COMPNAME</Key>
<Value>HRB</Value>
</Item1>
<Item1>
<Key>REGSTATUS</Key>
<Value>Y</Value>
</Item1>
<Item1>
<Key></Key>
<Value></Value>
</Item1>
</InXML>
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.