Coverage Report - org.mule.examples.loanbroker.bpm.actions.PrepareLoanQuoteRequest
 
Classes in this File Line Coverage Branch Coverage Complexity
PrepareLoanQuoteRequest
0%
0/7
N/A
1
 
 1  
 /*
 2  
  * $Id: PrepareLoanQuoteRequest.java 7976 2007-08-21 14:26:13Z dirk.olmes $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.examples.loanbroker.bpm.actions;
 12  
 
 13  
 import org.mule.examples.loanbroker.messages.CreditProfile;
 14  
 import org.mule.examples.loanbroker.messages.CustomerQuoteRequest;
 15  
 import org.mule.examples.loanbroker.messages.LoanBrokerQuoteRequest;
 16  
 import org.mule.providers.bpm.jbpm.actions.LoggingActionHandler;
 17  
 
 18  
 import org.jbpm.graph.exe.ExecutionContext;
 19  
 
 20  
 /**
 21  
  * Prepares a loan request for the banks based on the original customer request and the customer's 
 22  
  * credit profile.
 23  
  */
 24  0
 public class PrepareLoanQuoteRequest extends LoggingActionHandler
 25  
 {
 26  
     public void execute(ExecutionContext executionContext) throws Exception
 27  
     {
 28  0
         super.execute(executionContext);
 29  0
         LoanBrokerQuoteRequest loanRequest = new LoanBrokerQuoteRequest();
 30  0
         loanRequest.setCustomerRequest((CustomerQuoteRequest) executionContext.getVariable("customerRequest"));
 31  0
         loanRequest.setCreditProfile((CreditProfile) executionContext.getVariable("creditProfile"));
 32  0
         executionContext.setVariable("loanRequest", loanRequest);
 33  0
     }
 34  
 }