Code Listing 2: BPEL flow, sequence, invoke, and receive in the Loan Process

<flow>
      <!-- Invoke 1st loan provider in parallel to the second -->
      <sequence>
        <invoke name="invokeUnitedLoan"
                partnerLink="UnitedLoanService"
                portType="services:LoanService"
                operation="initiate"
                inputVariable="loanApplication"/>
        <receive name="receive_invokeUnitedLoan"
                partnerLink="UnitedLoanService"
                portType="services:LoanServiceCallback"
                operation="onResult"
                variable="loanOffer1"/>
      </sequence>
      <sequence>
      <!--  Invoke the 2nd loan provider in parallel to the first -->
      <invoke name="invokeAmericanLoan" partnerLink="AmericanLoanService"
                portType="services:LoanService"
                operation="initiate"
                inputVariable="loanApplication"/>
        <receive name="receive_invokeAmericanLoan"
                partnerLink="AmericanLoanService"
                portType="services:LoanServiceCallback"
                operation="onResult"
                variable="loanOffer2"/>
      </sequence>
    </flow>
E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy