View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.example.loanbroker.bpm.activity;
8   
9   import org.mule.example.loanbroker.messages.CreditProfile;
10  import org.mule.example.loanbroker.messages.CustomerQuoteRequest;
11  import org.mule.example.loanbroker.messages.LoanBrokerQuoteRequest;
12  
13  /**
14   * Prepares a loan request for the banks based on the original customer request and the customer's 
15   * credit profile.
16   */
17  public class PrepareLoanQuoteRequest
18  {
19      public static LoanBrokerQuoteRequest prepareRequest(CustomerQuoteRequest customerRequest, CreditProfile creditProfile)
20      {  
21          LoanBrokerQuoteRequest loanRequest = new LoanBrokerQuoteRequest();
22          loanRequest.setCustomerRequest(customerRequest);
23          loanRequest.setCreditProfile(creditProfile);
24          return loanRequest;
25      }
26  }