Why is annotation column in decision table.

94 views
Skip to first unread message

Kishan Kumar

unread,
Aug 5, 2022, 7:09:27 AM8/5/22
to Kogito development mailing list
Hi All,

Hope everybody very well.

I have one question, why given the annotation column in decision Table, And How to use the column in real life.

Thank you & Best Regards,
Kishan Kumar.



Screenshot 2022-08-05 163623.jpg

Matteo Mortari

unread,
Aug 5, 2022, 7:55:09 AM8/5/22
to Kogito development mailing list
Hi Kishan,
that column has no effect on model runtime / evaluation, it could be used however for your own annotation, comments, etc.

For example, in this decision table:
image.png

The Evaluation output column is the one which will decide the logic of the results.
I have used the annotation column renamed as "Description" to make some notes.

You can add additional annotation columns to the right of the existing one, if needed as well.

Hope this helps!
MM


--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/0a13fbb4-a00b-44c0-aaf1-3504fbf5070bn%40googlegroups.com.


--

Kishan Kumar

unread,
Aug 5, 2022, 8:02:57 AM8/5/22
to Kogito development mailing list
Hi Matteo Mortari,

First of all Thanks for reply me.


I given the  comments as well decision rules,
now what have my question, After Evaluate the decision table  comments is showing any whare like decision table outcome.



Thank you & Best Regards,
Kishan Kumar.



Kishan Kumar

unread,
Aug 5, 2022, 8:27:05 AM8/5/22
to Kogito development mailing list
Hi all is message box is empty.
I have one question whare is I will provide values then message coming to empty box.


Thank you & Best Regards,
Kishan Kumar.Screenshot 2022-08-05 175505.jpg

Matteo Mortari

unread,
Aug 5, 2022, 9:24:52 AM8/5/22
to Kogito development mailing list
Hi Kishan,

Since the decision table Annotation columns should have no effect on the model evaluation, we do not provide those annotations in the messages of the DMNResult.

However, if you wanted, you could implement a specific DMN LIstener,
it should be possible to intercept the selected DecisionTable rows, and going through the metadata, log (sysout or Logger) the related annotation row/cell.

Hope this helps!
MM

Rhett S

unread,
Aug 5, 2022, 10:33:01 AM8/5/22
to Kogito development mailing list
Hi Krishan,
appreciate your question. I had the same question a few months ago. 
Let me add some context for you, that helped me. 
Everything that a user can do or build in a DMN is not specific to DROOLS or KOGITO. DROOLS provides an implementation for the DMN specification, exactly. 

Thus, the single source of truth about the DMN spec can be found on the OMG website. Further, on the 52th page (page # 36), section 6.3.6.3, the intention of the Annotation feature is described: https://www.omg.org/spec/DMN/1.4/Beta1/PDF

" Text Annotations are a mechanism for a modeler to provide additional text information for the reader of a DMN Diagram"

Annotations are not impacted, outputted, or read during rule evaluation of DROOLS. 
happy friday Rhett

Kishan Kumar

unread,
Aug 8, 2022, 2:06:20 AM8/8/22
to Kogito development mailing list
Hi, Everyone.

Thanks for reply me.
I will check.


Thank you & Best Regards,
Kishan Kumar
Reply all
Reply to author
Forward
0 new messages