You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: drools-docs/src/modules/ROOT/pages/DMN/dmn-gs-assigning-custom-datatypes-proc.adoc
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,9 @@ After you create the DMN custom data types, assign them to the appropriate *DMN
6
6
.Prerequisites
7
7
* You have created the traffic violations DMN custom data types in {CENTRAL}.
8
8
9
+
9
10
.Procedure
10
-
. Click the *Model* tab on the DMN designer and click *Properties* icon in the upper-right corner of the DMN designer to expose the DRD properties.
11
+
. Click the *Model* tab on the DMN designer and click the *Properties* image:getting-started/diagram_properties.png[] icon in the upper-right corner of the DMN designer to expose the DRD properties.
11
12
. In the DRD, select the *Driver* input data node and in the *Properties* panel, select `tDriver` from the *Data type* pull-down menu.
12
13
. Select the *Violation* input data node and select `tViolation` from the *Data type* pull-down menu.
13
14
. Select the *Fine* input data node and select `tFine` from the *Data type* pull-down menu.
Copy file name to clipboardExpand all lines: drools-docs/src/modules/ROOT/pages/DMN/dmn-gs-creating-custom-datatypes-proc.adoc
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ The following tables list the `tDriver`, `tViolation`, and `tFine` custom data t
53
53
* You created the traffic violations DMN decision requirements diagram (DRDs) in {CENTRAL}.
54
54
55
55
.Procedure
56
-
. To create the `tDriver` custom data type, click *Add* on the *Data Types* tab, enter `tDriver` in the *Name* field, and select `Structure` from the *Type* list.
56
+
. To create the `tDriver` custom data type, click *Add a custom Data Type* on the *Data Types* tab, enter `tDriver` in the *Name* field, and select `Structure` from the *Type* list.
57
57
. Click the check mark to the right of the new data type to save your changes.
. To create the `tViolation` custom data type, click *Add* on the *Data Types* tab, enter `tViolation` in the *Name* field, and select `Structure` from the *Type* list.
69
+
. To create the `tViolation` custom data type, click *New Data Type*, enter `tViolation` in the *Name* field, and select `Structure` from the *Type* list.
70
70
. Click the check mark to the right of the new data type to save your changes.
. Click *OK*, then click the check mark to the right of the *Type* data type to save your changes.
89
-
. To create the `tFine` custom data type, click *Add* on the *Data Types* tab, enter `tFine` in the *Name* field, select `Structure` from the *Type* list, and click *Save*.
89
+
. To create the `tFine` custom data type, click *New Data Type*, enter `tFine` in the *Name* field, select `Structure` from the *Type* list, and click *Save*.
. To calculate the fine, in the DMN designer canvas, select the *Fine* decision node and click the *Edit* icon to open the DMN boxed expression designer.
17
+
+
18
+
19
+
.Decision node edit icon
20
+
image::dmn/decision_node_edit.png[]
21
+
17
22
. Click *Select expression* -> *Decision Table*.
23
+
+
24
+
25
+
.Select Decisiong Table logic type
26
+
image::dmn/select_logic_type.png[]
27
+
18
28
. For the *Violation.Date*, *Violation.Code*, and *Violation.Speed Limit* parameter fields, right-click and select *Delete* for each field.
19
29
. Click the *Violation.Actual Speed* column header and enter the expression `Violation.Actual Speed - Violation.Speed Limit` in the *Name* field.
20
30
. Right-click the *Fine* parameter field and select either `Insert left` or `Insert right`.
0 commit comments