此内容没有您所选择的语言版本。

Chapter 14. Creating the mortgage-process data objects


Data objects are the building blocks for the rule assets that you create. Data objects are custom data types implemented as Java classes in specified packages of your project. These custom data types determine what data your assets and your decision services are based on.

The mortgage process project uses the following data objects:

  • Applicant
  • Property
  • ValidationErrorDO
  • Application

14.1. Creating the Applicant data object

Follow these steps to create the Applicant data object, which contains information about the applicant. This is the basic information required to apply for the loan in this tutorial.

Procedure

  1. In Business Central, click on the MySpace default space.
  2. Click Menu Design Projects and click mortgage-process.
  3. Click Add Asset and select Data Object.
  4. Enter Applicant in the Data Object field of the Create new Data Object window.
  5. Select com.myspace.mortgage_app from the Package drop-down menu and click Ok.
  6. Enter Applicant in the Label field of the 'Applicant'- general properties section.
  7. Click +add field and input the following Applicant data object values. Click Create and continue after each addition. For the last addition, click Create.

    Figure 14.1. Applicant data object field values

  8. Click Save.

14.2. Creating the Property data object

Follow these steps to create the Property data object, which contains information about the property details, such as the property age and price.

Procedure

  1. In Business Central, click on the MySpace default space.
  2. Click Menu Design Projects and click mortgage-process.
  3. Click Add Asset and select Data Object.
  4. Enter Property in the Data Object field of the Create new Data Object window.
  5. Select com.myspace.mortgage_app from the Package drop-down menu and click Ok.
  6. Enter Property in the Label field of the 'Property'- general properties section.
  7. Click +add field and input the following Property data object values. Click Create and continue after each addition. For the last addition, click Create.

    Figure 14.2. Property data object field values

  8. Click Save.

14.3. Creating the ValidationErrorDO data object

Follow these steps to create the ValidationErrorDO data object, which specifies the cause of an application error.

Procedure

  1. In Business Central, click on the MySpace default space.
  2. Click Menu Design Projects and click mortgage-process.
  3. Click Add Asset and select Data Object.
  4. Enter ValidationErrorDO in the Data Object field of the Create new Data Object window.
  5. Select com.myspace.mortgage_app from the Package drop-down menu and click Ok.
  6. Enter ValidationErrorDO in the Label field of the 'ValidationErrorDO'- general properties section.
  7. Click +add field and input the following ValidationErrorDO data object values. Click Create and continue after each addition. For the last addition, click Create.

    Figure 14.3. ValidationErrorDO data object field values

  8. Click Save.

14.4. Creating the Application data object

Follow these steps to create the Application data object, which contains information about the mortgage details, such as the down payment and the mortgage amount.

Procedure

  1. In Business Central, click on the MySpace default space.
  2. Click Menu Design Projects and click mortgage-process.
  3. Click Add Asset and select Data Object.
  4. Enter Application in the Data Object field of the Create new Data Object window.
  5. Select com.myspace.mortgage_app from the Package drop-down menu and click Ok.
  6. Enter Application in the Label field of the 'Application'- general properties section.
  7. Click +add field and input the following Application data object values. Click Create and continue after each addition. For the last addition, click Create.

    Figure 14.4. Application data object field values

  8. Click Save.
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat