Skip to Content

Using XPath in switch step of ccBPM.

Hi,

We are trying to use a switch step in a ccBPM and the condition for one branch is such that we want to check for the presence of a particular structure in a Message Type. I have tried with various combinations of XPath and operators, but none seems to work. Can anybody please suggest a solution to acheive this.

Suppose I have an Abstract Message visible as Condition Variable in switch, whose structure is as follows:

MT_Test

Payload 0..*

DataLine1 1..1

DataLine2 1..1

Now if this Message Type (MT_Test) is defined as a condition variable 'Test', then how do I check for the existence of the structure 'Payload' in the switch step (as condition for a particular branch).

Basically we want to execute a branch only if MT_Test has a structure Payload else the default branch should be executed.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jan 14, 2009 at 11:14 AM

    Hi,

    make a container variable for a filed inside Payload structure.

    then put condition like //MT_Test/Payload/<some field> = <some vaule> and check for some value in it for your switch step in BPM.

    Regards,

    Rajeev Gupta

    Edited by: RAJEEV GUPTA on Jan 14, 2009 12:15 PM

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 15, 2009 at 01:49 AM

    doesnt it work with the EX operator?

    /MT_TEST/Paylod EX

    Regards,

    Henrique.

    Add comment
    10|10000 characters needed characters exceeded