Chapter 2. Data objects

Data objects are the building blocks for the rule assets that you create. Data objects are custom data types implemented as Java objects in specified packages of your project. For example, you might create a Person object with data fields Name, Address, and DateOfBirth to specify personal details for loan application rules. These custom data types determine what data your assets and your decision service are based on.

For more information about creating data objects, see "Creating data objects" in Designing a decision service using guided decision tables.

2.1. Viewing the Mortgages data objects

This tutorial utilizes the predefined data objects in the Mortgages sample project.

The Mortgages data model is composed of four data objects:

  • Applicant
  • Bankruptcy
  • IncomeSource
  • LoanApplication

2.1.1. Viewing the Applicant data object

Follow these steps to familiarize yourself with the predefined Applicant data object.

Procedure

  1. Click MenuDesignProjects, then click Mortgages.
  2. Input Applicant.java in to the project’s asset search box and click the Applicant data object.
  3. Review the Applicant data object fields.

    field data applicant dm

2.1.2. Viewing the Bankruptcy data object

Follow these steps to familiarize yourself with the predefined Bankruptcy data object.

Procedure

  1. Click MenuDesignProjects, then click Mortgages.
  2. Input Bankruptcy.java in to the project’s asset search box and click the Bankruptcy data object.
  3. Review the Bankruptcy data object fields.

    field data bankruptcy

2.1.3. Viewing the IncomeSource data object

Follow these steps to familiarize yourself with the predefined IncomeSource data object.

Procedure

  1. Click MenuDesignProjects, then click Mortgages.
  2. Input IncomeSource.java in to the project’s asset search box and click the IncomeSource data object.
  3. Review the IncomeSource data object fields.

    field data inc src

2.1.4. Viewing the LoanApplication data object

Follow these steps to familiarize yourself with the predefined LoanApplication data object.

Procedure

  1. Click MenuDesignProjects, then click Mortgages.
  2. Input LoanApplication.java in to the project’s asset search box and click the LoanApplication data object.
  3. Review the Property data object fields.

    field data laon app