Skip to Content
author's profile photo Former Member
Former Member

Prblem with Switch step in BPM

Hi all,

I have a problem with a switch step in my BPM. The condition on my BPM is that I have an xpath and that should have a particular constant value. If true, then proceed or else passs through the otherwise branch. The success branch has a transformation and a send step. The otherwise has a control step with an Alert category defined.

So the BPM is like

Receive message --> Switch (XPath condition a particular node must have a value not equal to zero.) --> if tru then transformation and send step otherwise control step.

This all works fine as expected when I pass in the correct message format. The problem is, if I send in a message of a completely different structure, it is still going through the otherwise step of the switch case and not erroring out. The BPM is not erroring out no matter what message I pass in.

Ideally I am expecting it to error out and send an alert message according to the category.

could somebody please help me on this?

Thanks

Karthik

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 09:15 PM

    Hi Karthik,

    Check this thread..

    Problem with Switch Step in BPM

    cheers,

    Prashanth

    P.S Please mark helpful answers

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 09:38 PM

    Hi Karthik,

    Just check this..

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

    cheers,

    Prashanth

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 10:37 PM

    Hi,

    I resolved it, but it might sound like a workaround. The switch condition works fine. I added another transformation on the otherwise branch of the switch condition and captured the exception there. So when I get some random file, if though it proceeds onto the otherwise branch, it will error out on the mapping and throw an alert.

    Thanks for your help.

    Karthik

    Add comment
    10|10000 characters needed characters exceeded