cancel
Showing results for 
Search instead for 
Did you mean: 

BPM Switch Xpath

Former Member
0 Kudos
66

Hi to All,

I'm working at a RFC - BPM - File scenario with in de BPM a switch. The switch must evaluate the element ICODE.

Here is the message

<?version="1.0" encoding="UTF-8" ?>

<rfc:_-ACTION_-ZHR_PI_PERNR_STAM_EV1 xmlns:rfc="urn:sap-com:document:sap:rfc:functions" >

<TA_EVOLUTION>

<item>

<TECHNICALENTITY>417100</TECHNICALENTITY>

<WORKERCATEGORY>B</WORKERCATEGORY>

<WORKERNBR>10000436</WORKERNBR>

<VALIDFROM>2010-12-06</VALIDFROM>

<VALIDTO>0000-00-00</VALIDTO>

<LASTNAME>Integration</LASTNAME>

<FIRSTNAME>Process</FIRSTNAME>

<GENDER>1</GENDER>

<BIRTHDATE>1973-09-12</BIRTHDATE>

<BIRTHCITY></BIRTHCITY>

<BIRTHCOUNTRY></BIRTHCOUNTRY>

<NATIONALITY></NATIONALITY>

<NATIONALNBR>00000000000</NATIONALNBR>

<ADDRESSVALIDFROM>2010-09-01</ADDRESSVALIDFROM>

<ADDRESSVALIDTO>9999-12-31</ADDRESSVALIDTO>

<ADDRESSTYPE>1</ADDRESSTYPE>

<STREETNBR>intefacebus1Q</STREETNBR>

<ZIPCODE>1000B</ZIPCODE>

<ADDRESSCITY>Bruxelles</ADDRESSCITY>

<ADDRESSCOUNTRY>BE</ADDRESSCOUNTRY>

<HOMEPHONE></HOMEPHONE>

<HOMEMOBILE></HOMEMOBILE>

<HOMEEMAIL></HOMEEMAIL>

<HIREDATE>2010-11-01</HIREDATE>

<TERMINATIONDATE>9999-12-31</TERMINATIONDATE>

<TERMINATIONREASON>Unknown</TERMINATIONREASON>

<SENIORITYDATE>2010-09-01</SENIORITYDATE>

<PROBATIONPERIOD></PROBATIONPERIOD>

<PROBATIONENDDATE>0000-00-00</PROBATIONENDDATE>

<FUNCTIONVALIDFROM>2010-11-11</FUNCTIONVALIDFROM>

<FUNCTIONTYPE>60000075</FUNCTIONTYPE>

<LOCATIONVALIDFROM>2010-11-11</LOCATIONVALIDFROM>

<JOBPLACE></JOBPLACE>

<COSTCENTERVALIDFROM>2010-11-11</COSTCENTERVALIDFROM>

<COSTCENTER>2003</COSTCENTER>

<POSITIONVALIDFROM>2010-11-11</POSITIONVALIDFROM>

<LEVEL1>2001</LEVEL1>

<ICODE>ACCTE</ICODE>

</item>

</TA_EVOLUTION>

</rfc:_-ACTION_-ZHR_PI_PERNR_STAM_EV1>

I have used the website http://www.whitebeam.org/library/guide/TechNotes/xpathtestbed.rhtm to test the following Xpath:

//TA_EVOLUTION/item/ICODE="LE"

It results a boolean false. So switch should work.

However I don't know what syntax I have to use to let the Switch work

What syntax I try. It gives a syntax error or it results to the first branch of the switch, I want it to result in the otherwise branch.

Regards

Remco Nieuwboer

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

BPM in PI7.1 or lower?

if in 7.1 then check :

for lower if i remember correctly you can select the node from expression editor.

Regards,

Abhishek.

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanx, the aswers solved the problem.

I use PI 7.1 and needed to make a Condition Variable and bind it to the message.

The condition variable evaluates now

syntax of the condition:

ICODE="LE"

binding:

ICODE=/rfc:_-ACTION_-ZHR_PI_PERNR_STAM_EV1/TA_EVOLUTION/item/ICODE

Former Member
0 Kudos

in BPM in switch step, for condition there is expression editor......in it in left operand in ur souce msg select the node......use operation EQ and use your value in right operand.........

Former Member
0 Kudos

HI

Can you elaborate the conditions/cases that you want your switch to work upon.

Regards

Rahul Grover