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
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ After you create the DMN custom data types, assign them to the appropriate *DMN
9
9
10
10
.Procedure
11
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.
12
-
. In the DRD, select the *Driver* input data node and in the *Properties* panel, select `tDriver` from the *Data type* pull-down menu.
13
-
. Select the *Violation* input data node and select `tViolation` from the *Data type* pull-down menu.
14
-
. Select the *Fine* input data node and select `tFine` from the *Data type* pull-down menu.
12
+
. In the DRD, select the *Driver* input data node and in the *Properties* panel, select `tDriver` from the *Data type* drop-down menu.
13
+
. Select the *Violation* input data node and select `tViolation` from the *Data type* drop-down menu.
14
+
. Select the *Fine* input data node and select `tFine` from the *Data type* drop-down menu.
15
15
. Select the *Should the driver be suspended?* decision node and set the following properties:
Copy file name to clipboardExpand all lines: drools-docs/src/modules/ROOT/pages/DMN/dmn-gs-creating-custom-datatypes-proc.adoc
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ DMN data types determine the structure of the data that you use within a table,
6
6
.The custom data types tab
7
7
image::dmn/dmn-custom-datatypes-tab.png[]
8
8
9
-
//Alternately, you can also access the *Data Types* tab from the *Diagram properties* tab on the right. From the *Diagram properties* tab, click *Manage* from *Data type* under *Information item*.
9
+
//Alternately, you can also access the *Data Types* tab from the *Properties* tab on the right. From the *Properties* tab, click *Manage* from *Data type* under *Information item*.
. To add the following constraints to the `Type` nested data type, click the edit icon, click *Add Constraints*, and select *Enumeration* from the *Select constraint type* pull-down menu.
82
+
. To add the following constraints to the `Type` nested data type, click the edit icon, click *Add Constraints*, and select *Enumeration* from the *Select constraint type* drop-down menu.
.. In the *Create new DMN* window, enter `Traffic Violation` in the *DMN* name field.
16
16
.. From the *Package* list, select `com.myspace.traffic_violation`.
17
17
.. Click *Ok*. The DMN asset in the DMN designer is opened.
18
-
. In the DMN designer canvas, drag two *DMN Input Data* input nodes on to the canvas.
18
+
. In the DMN designer canvas, drag two *DMN Input Data* input nodes onto the canvas.
19
19
+
20
20
21
21
.DMN Input Data nodes
22
22
image::dmn/library_objects.png[]
23
23
24
24
. In the upper-right corner, click the *Properties* image:getting-started/diagram_properties.png[] icon.
25
25
. Double-click each input node, and in the *Name* field, rename one to `Driver` and the other to `Violation`.
26
-
. Drag a *DMN Decision* decision node on to the canvas.
26
+
. Drag a *DMN Decision* decision node onto the canvas.
27
27
. Double-click the decision node and rename it to `Fine`.
28
28
. Click the *Violation* input node, select the *Create DMN Information Requirement* icon and click the `Fine` decision node to link the two nodes.
29
29
+
30
30
31
31
.Create DMN Information Requirement icon
32
32
image::dmn/info-requirement.png[]
33
33
34
-
. Drag a *DMN Decision* decision node on to the canvas.
34
+
. Drag a *DMN Decision* decision node onto the canvas.
35
35
. Double-click the decision node and rename it to `Should the driver be suspended?`.
36
36
. Click the *Driver* input node, select the *Create DMN Information Requirement* icon and click the *Should the driver be suspended?* decision node to link the two nodes.
37
37
. Click the *Fine* decision node, select the *Create DMN Information Requirement* icon, and select the *Should the driver be suspended?* decision node.
. For the *Violation.Date*, *Violation.Code*, and *Violation.Speed Limit* parameter fields, right-click and select *Delete* for each field.
29
29
. Click the *Violation.Actual Speed* column header and enter the expression `Violation.Actual Speed - Violation.Speed Limit` in the *Name* field.
30
30
. Right-click the *Fine* parameter field and select either `Insert left` or `Insert right`.
31
-
. Click the *output-2* column sub-header, enter `Amount` in the *Name* field, and select `number` from the *Data Type* pull-down menu.
31
+
. Click the *output-2* column sub-header, enter `Amount` in the *Name* field, and select `number` from the *Data Type* drop-down menu.
32
32
. Similarly, click the *output-1* column sub-header, enter `Points` in the *Name* field, and select `number` from the *Data Type* field.
33
33
. Next, enter the following values in the first row of the decision table:
34
34
* *Violation.Type*: `"speed"`
@@ -59,7 +59,7 @@ Right-click the third row and select `Insert below` to add another row.
59
59
. Click *Save*.
60
60
. To define the driver suspension rule, return to the DMN designer canvas, select the *Should the driver be suspended?* decision node, and click the *Edit* icon to open the DMN boxed expression designer.
61
61
. Click *Select expression* -> *Context*.
62
-
. Click *ContextEntry-1*, enter `Total Points` as the *Name*, and select `number` from the *Data Type* pull-down menu.
62
+
. Click *ContextEntry-1*, enter `Total Points` as the *Name*, and select `number` from the *Data Type* drop-down menu.
63
63
. Click the cell next to *Total Points*, select `Literal expression` from the context menu, and enter `Driver.Points + Fine.Points` as the expression.
64
64
. In the cell below *Driver.Points + Fine.Points*, select `Literal Expression` from the context menu, and enter `if Total Points >= 20 then "Yes" else "No"`.
0 commit comments