on 12-24-2010 11:08 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.........
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
Can you elaborate the conditions/cases that you want your switch to work upon.
Regards
Rahul Grover
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
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.