1 Reply Latest reply on Jan 5, 2006 11:30 PM by aguizar

    BPEL Process with fault

    fwshk

      Excuse me,

      I have a partnerLink (Normal Web Service) will throw a fault "FaultMessage"
      and I would like to re-throw the fault to client application
      How can I do this?

      <process ...>
       <partnerLinks>
       ...
       <partnerLink name="partnerLink" partnerRole="partnerLink_PartnerRole"
       partnerLinkType="my:partnerLink_PLT"/>
       ...
       </partnerLinks>
       <variables>
       ...
       <variable messageType="imp1:InMessage" name="partnerLinkIn"/>
       <variable messageType="imp1:OutMessage" name="partnerLinkOut"/>
       <variable messageType="imp1:FaultMessage" name="partnerLinkFault"/>
       ...
       </variables>
       <faultHandlers>
       <catchAll>
       <!-- The catchAll haven't catch the fault -->
       <throw faultName="bpws:remoteFault"
       faultVariable="partnerLinkFault"/>
       </catchAll>
       </faultHandlers>
       <sequence>
       ...
       <invoke operation="operation" partnerLink="partnerLink"
       portType="imp1:PartnerLinkPortType" inputVariable="partnerLinkIn"
       outputVariable="partnerLinkOut" faultVariable="partnerLinkFault"/>
       ...
       </sequence>
      </process>
      
      
      
      <?xml version="1.0" encoding="UTF-8"?>
      <definitions ...>
       <import namespace="partnerLinkNamespace" location="partnerLink.wsdl"/>
       ...
      
       <plnk:partnerLinkType name="partnerLink_PLT">
       <plnk:role name="partnerLink_PartnerRole">
       <plnk:portType name="imp1:partnerLinkPortType"/>
       </plnk:role>
       </plnk:partnerLinkType>
       ...
      
       <types>...</types>
      
       <message ...>...</message>
       ...
      
       <portType name="SelfPortType">
       <operation name="selfOperation">
       <input message="my:InMessage" name="input"/>
       <output message="my:OutMessage" name="output"/>
       <fault message="imp1:FaultResult" name="fault"/>
       </operation>
       </portType>
      </definitions>
      


      Thank you very much ^^
      Roy

        • 1. Re: BPEL Process with fault
          aguizar

          Your process definition is correct. The issue is, jBPM BPEL does not support fault handlers yet. The pieces are already implemented. It is a matter of pulling all of them together.

          The related JIRA issue is BPEL-9. I'm raising its priority. The next product release will feature fault handling.