Skip to Content
0

NW BPM Xpath Condition

Dec 12, 2016 at 05:44 AM

63

avatar image
Former Member

Hi All,

I am trying to use a condition in NW BPM using Exclusive Choice. I need to check the status of a particular Job - SUCCESS , RUNNING , FAILURE. How can I check these 3 status in XPath.

I tried using matches condition but not able to figure out how to use it for 3 separate cases. Using 'OR' with matches is giving error.

Can someone please help on this.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member Dec 12, 2016 at 06:10 AM
0

Hi Raghuraman,

These status are coming as a response from a web service. Now I need to check using conditions if its completed. If so then do the other steps for processing. Problem here is how to check these 3 conditions in Xpath. Will matches expression work here.

matches( condition ) or matches ( condition) - I tried something like this but it didnt work.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Amit!

If you use XPath - what is your full path to element, containing needed values?

Regards, Evgeniy.

0
Former Member
Evgeniy Kolmakov

Hi,

I am trying to use something like this.

matches(DO_Status/ExecuteName,"FAILURE"). THis works for 1 condition. I want to combine this to use for 3 conditions.( SUCCESS, RUNNING, FAILURE

0

SUCCESS OR RUNNING OR FAILURE ?

0
Raghuraman S Dec 12, 2016 at 05:59 AM
0

Hello Amit,

Are these status fields part of XML fields?

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Dec 12, 2016 at 06:51 AM
0

Hi Amit!

In case your element's value should match any of "SUCCESS", "RUNNING" or "FAILURE" values, you can try the following condition:

contains("FAILURE SUCCESS RUNNING", DO_Status/ExecuteName).

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded