Skip to Content

NW BPM Xpath Condition

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 12, 2016 at 06:10 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 12, 2016 at 05:59 AM

    Hello Amit,

    Are these status fields part of XML fields?

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 12, 2016 at 06:51 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded