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
- Click Menu → Design → Projects, then click Mortgages.
-
Input
Applicant.javain to the project’s asset search box and click the Applicant data object. Review the Applicant data object fields.

2.1.2. Viewing the Bankruptcy data object
Follow these steps to familiarize yourself with the predefined Bankruptcy data object.
Procedure
- Click Menu → Design → Projects, then click Mortgages.
-
Input
Bankruptcy.javain to the project’s asset search box and click the Bankruptcy data object. Review the Bankruptcy data object fields.

2.1.3. Viewing the IncomeSource data object
Follow these steps to familiarize yourself with the predefined IncomeSource data object.
Procedure
- Click Menu → Design → Projects, then click Mortgages.
-
Input
IncomeSource.javain to the project’s asset search box and click the IncomeSource data object. Review the IncomeSource data object fields.

2.1.4. Viewing the LoanApplication data object
Follow these steps to familiarize yourself with the predefined LoanApplication data object.
Procedure
- Click Menu → Design → Projects, then click Mortgages.
-
Input
LoanApplication.javain to the project’s asset search box and click the LoanApplication data object. Review the Property data object fields.


Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.