< Previous | Next >

Creating interfaces

You create the interfaces to specify what data can be passed between the loan application components.

Interfaces provide the ability to process information received from other components or services. For example, the bank customer processes information to the bank (input) and receives a reply (output). The following table shows you the interfaces you will create.
Name Component Purpose
mainProcessInterface mainProcess
  • Operation: applyOnline
  • Input: customer provides information for this loan request to the bank (applicationInformation)
  • Output: customer receives a reply from the bank about his loan request (response)
LoanLimitsRuleInterface LoanLimits
  • Operation: checkCredit
  • Input: customer information is sent from the process to check the customer's credit rating against the business rules (applicantInformation)
  • Output: process receives a reply indicating whether the credit rating was high enough to accept the loan request (response)
  • Operation: autoapproval
  • Input: loan request is sent from the process to check the loan amount against the business rules (applicationInformation)
  • Output: process receives a reply indicating whether the loan amount was low enough to automatically approve the request (response)
CreditCheckInterface CreditCheck
  • Operation: checkCredit
  • Input: tax payer identification is sent from the rule group to get a generated credit score (taxPayerId)
  • Output: rule group receives a reply with the generated credit score of the applicant (creditScore)
FollowUpHTInterface FollowUpDeclinedApp
  • Operation: FollowUpDeclinedApp
  • Input: customer information and instructions are sent from the process to the bank employee for following up on declined loans (TaskInformation)
CompleteLoanHTInterface CompleteTheLoan
  • Operation: CompleteTheLoan
  • Input: customer information and instructions are sent from the process to the bank employee for reviewing automatically approved loans. (TaskInformation).
ProcessAppHTInterface ProcessTheApplication
  • Operation: ProcessTheApplication
  • Input: customer information and instructions are sent from the process to the bank employee for manually approving loans.
To create the interfaces for each component and the required operations, follow the tasks outlined below.

Creating mainProcessInterface

mainProcessInterface is the connection between the stand-alone references and the mainProcess component. It has the applyOnline operation which receives the loan request and responds with a message based on the status of the loan application.

To create mainProcessInterface, which will be added to the mainProcess component, follow these steps:
  1. In the Business Integration view, right-click LoanApplicationModule and click New > Interface.
  2. In the Name field, type mainProcessInterface and then click Finish. The editor opens for mainProcessInterface.
  3. Click Add Request Response Operation, which is the Add Request Response Operation button. This operation type provides an input and output to process information in both directions. operation1 is added.
  4. Rename operation1 to applyOnline by typing over the highlighted text.
  5. Rename input1 to applicationInformation. Click on the default type of string and, from the drop-down box, change the type to ApplicationBO.
  6. Rename output1 to response. Keep the default type of string.
  7. Click File > Save and then close the interface editor.
    mainProcessInterface

Creating LoanLimitsRuleInterface

LoanLimitsRuleInterface is the connection between the mainProcess component and the LoanLimits rule group. LoanLimitsRuleInterface has the checkCredit and autoapproval operations. The checkCredit operation is involved in determining an applicant's credit score. The autoapproval operation takes an application and indicates whether it should be approved outright.

To create LoanLimitsRuleInterface, follow the steps that you used to create mainProcessInterface and add the following operations:

  1. LoanLimitsRuleInterface
  2. Click File > Save and then close the interface editor.

Creating CreditCheckInterface

CreditCheckInterface is the connection between the LoanLimits rule group and the CreditCheck component. CreditCheckInterface has the checkCredit operation, which returns the credit score of the applicant, identified by his or her taxPayerId.

To create CreditCheckInterface, add the following operation:

  1. CreditCheckInterface
  2. Click File > Save and then close the interface editor.

Creating FollowUpHTInterface

FollowUpHTInterface is the connection between the mainProcess component and the FollowUpDeclinedApp human task. FollowUpHTInterface has the FollowUpDeclinedApp operation. You use this interface for when a loan application needs to be reviewed after it is declined.

To create FollowUpHTInterface, which has a different type of operation than the previous interfaces, follow these steps:
  1. Create an interface from the Business Integration view as you did for the previous interfaces.
  2. Click Add One-Way Operation, which is the Add One-Way Operation button. operation1 is added.
  3. Complete the operation as shown below.
    FollowUpHTInterface
  4. Click File > Save and then close the interface editor.

Creating CompleteLoanHTInterface

CompleteLoanHTInterface is the connection between the mainProcess component and the CompleteTheLoan human task. CompleteLoanHTInterface has the CompleteTheLoan operation. You use this interface when a loan application needs to be reviewed after it is completed.

To create CompleteLoanHTInterface, add the following operation:

  1. CompleteLoanHTInterface
  2. Click File > Save and then close the interface editor.

Creating ProcessAppHTInterface

ProcessAppHTInterface is the connection between the mainProcess component and the ProcessTheApplication human task. ProcessAppHTInterface is an interface with the ProcessTheApplication operation. You use this interface when an application needs to be manually processed and approved.

To create ProcessAppHTInterface, add the following operation:

  1. ProcessAppHTInterface
  2. Click File > Save and then close the interface editor.
Next you will add the interfaces you just created to components in the assembly diagram to expose their business functions, and then wire the components together so that they can communicate.

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.
< Previous | Next >