1 Reply Latest reply: Jan 28, 2013 6:05 AM by Preetam Medlery RSS

    Fault policy Testing condition based on Error Summary

    Balaji Radhakrishnan
      Hi All,
      In SOA 11g BPEL process we used the below test condition options to handle a binding fault in the fault policy which is based on the fault summary.
      But none of the below options handles the fault .

      •     <test>$fault.summary/summary[contains(. , " failed due to: null ")]</test>
      •     <test>contains($fault.summary/summary, "failed due to: null")</test>
      •     <test>contains($fault.summary, "failed due to: null")</test>

      We need to handle the fault which contains the text "failed due to: null" in the error summary, in the fault policy.
      Kindly help us with the same. Thanks in advance.

      Regards,
      Balaji R

      Edited by: Balaji Radhakrishnan on Jan 28, 2013 1:50 AM
        • 1. Re: Fault policy Testing condition based on Error Summary
          Preetam Medlery
          Hi
          We also had this requirement what we did was we created a variable of string type and assigned getFaultAsString to this variable and used to test condition on this variable and it is working fine and getting the required output i have placed the example code below


          code
          <assign name="AssignFault">
          <copy>
          <from>ora:getFaultAsString()</from>
          <to>$faultVar</to>
          </copy>
          </assign>
          <if name="condition">
          <condition>contains($faultVar,'error')</condition>