on 01-06-2010 11:06 AM
Hi
I have a situation, where I need to call one system, if the businesspartner value is 6 characters long and call an other system, if the length is different from 6 characters.
I am trying to use the standard receiver determination by entering this rule, but it does not work:
(string-length(/p1:ValidateUserRequest/Businesspartner)) = 6 -> system1
(string-length(/p1:ValidateUserRequest/Businesspartner)) not= 6 -> system2
Is there no way of sprucing up the standard xpath expression in the way I try?
What alternatives do I have?
Mikael
Hi,
string-length is normally supported in receiver determination condition editor ! what does not work : syntax or routing ?
This works :
/p1:ValidateUserRequest\[string-length(Businesspartner)=6\] EX => system1
/p1:ValidateUserRequest\[string-length(Businesspartner)!=6\] EX => system2
Chris
Edited by: Christophe PFERTZEL on Jan 6, 2010 12:36 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use the exists function in the XPATH
Ref: /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.
Hi,
Please try giving the XPath expression as given below:
/p1:ValidateUserRequest [string-length(Businesspartner) = 6] system1
/p1:ValidateUserRequest [string-length(Businesspartner) != 6] system 2
Please use square brackets before "string" and after "6"...its not getting displayed in my reply...:-(
Rgds,
Lekshmi.
Edited by: Lekshmi N on Jan 6, 2010 12:29 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try to use Enhaanced Receiver Determination,there you can check the string length,for that write simple UDF.
based on value you can call service.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.