Chapter 4. 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.

4.1. Viewing the Mortgage Process data objects

This tutorial utilizes the predefined data objects in the Mortgage Process sample project.

The Mortgage Process data model is composed of four data objects:

  • Applicant
  • Application
  • Property
  • ValidationErrorDo

4.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 Mortgage Process.
  2. Input Applicant.java in to the project’s asset search box and click the Applicant data object.

    applicant do
  3. Review the Applicant data object fields.

    field data applicant

4.1.2. Viewing the Application data object

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

Procedure

  1. Click MenuDesignProjects, then click Mortgage Process.
  2. Input Application.java in to the project’s asset search box and click the Application data object.

    application do
  3. Review the Application data object fields.

    field data application

4.1.3. Viewing the Property data object

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

Procedure

  1. Click MenuDesignProjects, then click Mortgage Process.
  2. Input Property.java in to the project’s asset search box and click the Property data object.

    property do
  3. Review the Property data object fields.

    field data property

4.1.4. Viewing the ValidationErrorDO data object

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

Procedure

  1. Click MenuDesignProjects, then click Mortgage Process.
  2. Input ValidationErrorDO.java in to the project’s asset search box and click the ValidationErrorDO data object.

    val error
  3. Review the Property data object fields.

    field data val error