< Previous | Next >

Creating business objects

You will create business objects to hold data passed between components in the application.

For example, if a bank customer requests a loan, they will need to provide details such as their e-mail and ID. These attributes are stored, with names like email and taxPayerId, in the business objects that you create for your loan application, along with their data types. The business objects act as the currency in your application, and are transferred through interfaces to other components.
Here is an overview of the business objects you will create:
Name Purpose
ContactBO You will create this business object to hold contact details of the loan applicant after they have entered their data online.
ApplicantBO This business object is a specialized ContactBO that also holds the tax payer identification of the applicant.
ApplicationBO This business object represents the loan application submitted by the applicant online.
CreditBO This business object contains the credit information for the applicant.
HumanTaskBO This business object is sent to the bank. It includes the application and instructions for a bank employee to follow when evaluating that particular loan.
The following tasks show you how to create the business objects required for the loan application.

Creating a business object for an applicant's contact information

ContactBO is a business object that contains contact information, both name and e-mail, for a loan applicant.

To create ContactBO, follow these steps:
  1. In the Business Integration view, right-click LoanApplicationModule and click New > Business Object.
  2. In the Name field, type ContactBO. Leave the Inherit from field as <none> and click Finish. The editor opens for ContactBO.
  3. Click Add an attribute to a business object., which is the Add an attribute to a business object button. An attribute named attribute1 is created.
  4. Rename attribute1 to name by clicking the figure and typing over the highlighted text. Keep the default type of string.
  5. Following the steps above, add another attribute named email of type string.
  6. Click File > Save and then close the business object editor.
    ContactBO

Creating a business object for an applicant

ApplicantBO is a business object that represents a loan applicant in the process. This business object only needs to have one attribute created, which is for the tax payer identification of an applicant. The name and email attributes are inherited by ApplicantBO to reduce duplication, and it therefore treats those attributes as if they were part of ApplicantBO.

To create ApplicantBO, follow these steps:
  1. Create a new business object named ApplicantBO that inherits from ContactBO, and then complete the business object to match the following:
    ApplicantBO
  2. Click File > Save and then close the business object editor.

Creating a business object for a loan application

ApplicationBO is a container for the loan application data passed through the business process. This business object has all of the applicant's information stored in its applicant attribute, and it has the amount of the loan in the loanamount attribute.

ApplicationBO is a complex business object since it uses another business object, in this case ApplicantBO, as the type for one of its attributes.


Applying online
To create ApplicationBO, follow these steps:
  1. Create a new business object named ApplicationBO, and then complete the business object to match the following:
    ApplicationBO
  2. Click File > Save and then close the business object editor.

Creating a business object for an applicant's credit information

CreditBO is a business object that holds the loan applicant's credit information. It has identifying attributes of the applicant, such as name and taxPayerId, but also an additional attribute that holds the applicant's credit score. This credit score will been obtained from the CreditCheck component.

To create CreditBO, follow these steps:
  1. Create a new business object named CreditBO, and then complete the business object to match the following:
    CreditBO
  2. Click File > Save and then close the business object editor.

Creating a business object for human task information

HumanTaskBO is a business object that is passed to a bank employee, containing the application in an ApplicationBO, and a string of instructions for the bank employee to follow in order to complete the loan application process.


Sending the application instructions to a bank employee
To create HumanTaskBO, follow these steps:
  1. Create a new business object named HumanTaskBO, and then complete the business object to match the following:
    HumanTaskBO
  2. Click File > Save and then close the business object editor.
Next you will use the business objects as inputs and outputs in the interfaces that you create for each component.

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