cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of XPath function in BPM.

Former Member
0 Kudos

Hi

I'm trying to use an XPath function (string-length) in the BPM.

The closest I got to is looks something like this, but ie doesn't work.

/p1:node/path/[string-length(fieldname) = 11]

I'm able to check if the 'fieldname' equals a certain 'value' which works well but using the function fails.

Any help/inputs are appreciated.

Rajendra.

PS: System: NW'04, WebAS 640, XI3.0

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

Hi,

Did you try the value in the Quotes ? i,e

/p1:node/path/[string-length(fieldname) = "11"]

Just try it out..

Regards

Moorthy

Shabarish_Nair
Active Contributor
0 Kudos

try

1. (/p1:node/path/[string-length(fieldname) = "11"])

2. (/p1:node/path/[string-length(fieldname) = '11'])

3. (/p1:node/path/[string-length(fieldname) = 11])

but remember to use the EX operator !!!

Former Member
0 Kudos

Tried all ("11", '11', 11) with both types (xsd:string and xsd:integer), couldn't cross the bridge as yet!

Rajendra.

PS: Yes, I'm using the EX operator.

Message was edited by: Rajender Bandi

Answers (2)

Answers (2)

Former Member
0 Kudos

Can anyone point to any example that uses an XPath function in a BPM?

We are on XI3.0 SP12.

Is the feature of XPath functions being able to be used in BPM processes enabled in LATTER releases?

Former Member
0 Kudos

Hi,

try to use the following XPath statement when you want get the value of the field fieldname with length 11:

/p1:node/path[string-length(fieldname) = '11']/fieldname

Here is a good ressource for XML related topics

<a href="http://www.w3schools.com/default.asp">http://www.w3schools.com/default.asp</a>

Regards,

Lars

MichalKrawczyk
Active Contributor
0 Kudos

hi,

have a look at this weblog to understand

how you should use <b>propely </b>XSLT functions in XPATH:

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>