Skip to content

Commit 767d2ed

Browse files
michelehaglundtkobayas
authored andcommitted
BXMSDOC-5256 Updated with 7.33 test build for dev and qe review (#127) (#2208)
1 parent b9d30c8 commit 767d2ed

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

drools-docs/src/modules/ROOT/pages/DMN/dmn-gs-assigning-custom-datatypes-proc.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ After you create the DMN custom data types, assign them to the appropriate *DMN
66
.Prerequisites
77
* You have created the traffic violations DMN custom data types in {CENTRAL}.
88

9+
910
.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.
1112
. In the DRD, select the *Driver* input data node and in the *Properties* panel, select `tDriver` from the *Data type* pull-down menu.
1213
. Select the *Violation* input data node and select `tViolation` from the *Data type* pull-down menu.
1314
. Select the *Fine* input data node and select `tFine` from the *Data type* pull-down menu.

drools-docs/src/modules/ROOT/pages/DMN/dmn-gs-creating-custom-datatypes-proc.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The following tables list the `tDriver`, `tViolation`, and `tFine` custom data t
5353
* You created the traffic violations DMN decision requirements diagram (DRDs) in {CENTRAL}.
5454

5555
.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.
5757
. Click the check mark to the right of the new data type to save your changes.
5858
+
5959
.The tDriver custom data type
@@ -66,7 +66,7 @@ image::dmn/dmn-tDriver-custom-datatype.png[]
6666
* `City` (string)
6767
* `Points` (number)
6868

69-
. 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.
7070
. Click the check mark to the right of the new data type to save your changes.
7171
+
7272
.The tViolation custom data type
@@ -86,7 +86,7 @@ image::dmn/dmn-tViolation-custom-datatype.png[]
8686
* `driving under the influence`
8787

8888
. 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*.
9090
+
9191
.The tFine custom data type
9292
image::dmn/dmn-tFine-custom-datatype.png[]

drools-docs/src/modules/ROOT/pages/DMN/dmn-gs-creating-drd-proc.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ image::dmn/dmn-traffic-violations-drd.png[]
1616
.. From the *Package* list, select `org.kie.example.traffic.traffic_violation`.
1717
.. Click *Ok*. The DMN asset in the DMN designer is opened.
1818
. In the DMN designer canvas, drag two *DMN Input Data* input nodes on to the canvas.
19-
. Double-click each input node and rename one to `Driver` and the other to `Violation`.
19+
+
20+
21+
.DMN Input Data nodes
22+
image::dmn/library_objects.png[]
23+
24+
. In the upper-right corner, click the *Properties* image:getting-started/diagram_properties.png[] icon.
25+
. Double-click each input node, and in the *Name* field, rename one to `Driver` and the other to `Violation`.
2026
. Drag a *DMN Decision* decision node on to the canvas.
2127
. Double-click the decision node and rename it to `Fine`.
2228
. Click the *Violation* input node, select the *Create DMN Information Requirement* icon and click the `Fine` decision node to link the two nodes.

drools-docs/src/modules/ROOT/pages/DMN/dmn-gs-defining-decision-logic-proc.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@ image::dmn/dmn-gs-context-table.png[]
1414

1515
.Procedure
1616
. 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+
1722
. Click *Select expression* -> *Decision Table*.
23+
+
24+
25+
.Select Decisiong Table logic type
26+
image::dmn/select_logic_type.png[]
27+
1828
. For the *Violation.Date*, *Violation.Code*, and *Violation.Speed Limit* parameter fields, right-click and select *Delete* for each field.
1929
. Click the *Violation.Actual Speed* column header and enter the expression `Violation.Actual Speed - Violation.Speed Limit` in the *Name* field.
2030
. Right-click the *Fine* parameter field and select either `Insert left` or `Insert right`.

0 commit comments

Comments
 (0)