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

Chapter 26. 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 services are based on.

26.1. Creating the ITOrderService data object

The ITOrderService data object specifies the data type that will be used to define the IT Orders variables.

Prerequisites

  • The IT_Orders_New project is created and open in Business Central.

Procedure

  1. In the IT_Orders_New project, click Add Asset and then click Data Object.
  2. In the Create new Data Object wizard, enter the following values:

    • Data Object: ITOrderService
    • Package: com.myspace.it_orders_new
  3. Click Ok.
  4. Click plus sign next to the Package drop-down menu to create a new package for the data object.
  5. Enter org.jbpm.demo.it_orders.services and click Add.
  6. Click Save, and then click Yes, Move to confirm your changes.

26.2. Creating the Survey data object

The Survey data object contains data fields, such as deliveredOnTime and missingEquipment. You will use the data and values when you design your case.

Prerequisites

  • The IT_Orders_New project is created and open in Business Central.

Procedure

  1. Click Add Asset Data Object.
  2. In the Create new Data Object wizard, enter the following values:

    • Data Object: Survey
    • Package: com.myspace.it_orders_new
  3. Click Ok.
  4. Add the Survey data object constraints.

    1. Click add field.
    2. Enter the following values and then click Create and Continue:

      • Id: comment
      • Label: Leave empty
      • Type: String
    3. Click Create and continue, and then enter the following values:

      • Id: deliveredOnTime
      • Label: Leave empty
      • Type: Boolean
    4. In the New Field window, and then enter the following values:

      • Id: missingEquipment
      • Label: Leave empty
      • Type: String
    5. Click Create and continue, enter the following values:

      • Id: satisfied
      • Type: Boolean
    6. Click Create.
  5. In the survey window, click Save to confirm your changes.

    Figure 26.1. Survey data object details

    survey do
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

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

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

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

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동