이 콘텐츠는 선택한 언어로 제공되지 않습니다.
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
- In the IT_Orders_New project, click Add Asset and then click Data Object.
In the Create new Data Object wizard, enter the following values:
-
Data Object:
ITOrderService -
Package:
com.myspace.it_orders_new
-
Data Object:
- Click Ok.
-
Click
next to the Package drop-down menu to create a new package for the data object.
-
Enter
org.jbpm.demo.it_orders.servicesand click Add. - 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
-
Click Add Asset
Data Object. In the Create new Data Object wizard, enter the following values:
-
Data Object:
Survey -
Package:
com.myspace.it_orders_new
-
Data Object:
- Click Ok.
Add the Survey data object constraints.
- Click add field.
Enter the following values and then click Create and Continue:
-
Id:
comment - Label: Leave empty
-
Type:
String
-
Id:
Click Create and continue, and then enter the following values:
-
Id:
deliveredOnTime - Label: Leave empty
-
Type:
Boolean
-
Id:
In the New Field window, and then enter the following values:
-
Id:
missingEquipment - Label: Leave empty
-
Type:
String
-
Id:
Click Create and continue, enter the following values:
-
Id:
satisfied -
Type:
Boolean
-
Id:
- Click Create.
In the survey window, click Save to confirm your changes.
Figure 26.1. Survey data object details