on 07-28-2009 12:59 PM
Hi All,
I have a question regarding the usage of Switch condition (Like Option) in BPM.
For Example I want to give a condition such that I should pass all the messages starting with 'J' followed by any letter.
Thanks in advance
As the condition is an xpath, best option would be to use starts-with(). Other option could of course be use of substring in the xpath left hand expression to get first character and equate it with 'J'.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Go through Xpath functions here
http://www.w3schools.com/xpath/xpath_functions.asp#string
you can try using starts-with function
To frame your syntax, refer xpath in conditional receiver determination
/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A wildcard character based condition is allowed in SAP PI7.1 Switch
Not sure if you can have that in earlier versions.....if you want to try then have your condition like left Operand = J*
If it does not work then implement a workaround....using substring function get the first letter (J) of the source field into some other un-used field and then use this field to define your condition (Left Operand = J)
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi abhisek
i also am tryign the same scenario.However , we cant do it by parsing the field and then mapping it to an unused field.
I have seen some functions available in switch of BPM.but am unsure as how to use it.
There is one function which is similar to LIKE(~) .
Can you tell me when we use it and whether we can use it in our scenario?
Edited by: itisha alok on Jul 28, 2009 5:51 PM
The Operator that you are talking about is the Contains Pattern...
Have your Left Operand the node that you have to impose the condition on
Middle Operand as the Contains Pattern
Right Operand as Constant and it should be
* J (or J* )
just check it not quite sure......dont have an access to 7.0 right now
Check with this
For more info refer: http://help.sap.com/saphelp_nw70/helpdata/en/67/49767669963545a071a190b77a9a23/content.htm
Regards,
Abhishek.
Edited by: abhishek salvi on Jul 29, 2009 9:38 AM
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.