이 콘텐츠는 선택한 언어로 제공되지 않습니다.

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

15.1. Creating the Applicant data object

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 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 15.1. Applicant data object field values

  8. Click Save.

15.2. Creating the Property data object

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 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 15.2. Property data object field values

  8. Click Save.

15.3. Creating the ValidationErrorDO data object

Create the ValidationErrorDO data object, which specifies the cause of an application error.

Procedure

  1. In Business Central, click 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 15.3. ValidationErrorDO data object field values

  8. Click Save.

15.4. Creating the Application data object

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 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 15.4. Application data object field values

  8. Click Save.
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat
맨 위로 이동