Thursday, December 1, 2011

Validate the variable in Oracle BPEL

You can validate one variable against the schema in Oracle BPEL.   

It is done through validate activity from Oracle Extensions.   The BPEL codes will look like the below:

        <validate name="ValidateRequest"

When validation fails the standard fault bpel:invalidVaraible is thrown.   So you need to catch this fault using the following codes:

        <catch faultName="bpel:invalidVariables"> 
                   .... Some activities here

1 comment:

  1. I am trying to catch invalidVariable fault with Catch block of the validate activity scope. But it is instead going to CatchAll block