DMN Warning : Decision Table - UnaryTest type: UnaryTestNode

507 views
Skip to first unread message

Ravi Mangalagiri

unread,
Nov 11, 2020, 9:33:37 AM11/11/20
to Kogito development mailing list
What does this warning mean?

Skipped Decision Table Analysis of table '[ID: _D1A6D79E-1165-4A64-AE5E-195BC0AECC78]' because: UnaryTest type: UnaryTestNode{? in ["PendingSale", "Sold"]
Screen Shot 2020-11-11 at 9.31.16 AM.png

--
Ravi Mangalagiri
703-505-4240 (c)

Matteo Mortari

unread,
Nov 11, 2020, 9:42:04 AM11/11/20
to Kogito development mailing list
Hi Ravi,
the DT static analysis is not able to perform analysis on tables which use the extended DT expressions such as those using the ? magic dmn variable.

So the analysis for the table results in Skipped at the first DT extended expression, and a Warn is emitted.

Just FYI, the idiomatic way to represent "not null" in a DMN decision table actuially is 
not(null)

The !=null alone is not a valid unary test, while
? != null
would be a valid extended DT expression, but for the purpose of DT I would strongly recommend sticking to valid unary tests such as
not(null)

Hope this clarifies,
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/CALg%3DC8MZzS5%2BDGmhtPw78pGBpG-pFuY5t%2Bc2Zs%2BeAeBYf%2BuY9A%40mail.gmail.com.

Ravi Mangalagiri

unread,
Nov 11, 2020, 10:23:43 AM11/11/20
to Kogito development mailing list

Ravi Mangalagiri

unread,
Nov 11, 2020, 12:15:54 PM11/11/20
to Kogito development mailing list
Matteo,
 its complaining about the first condition column - UnaryTest type: UnaryTestNode{? in ["PendingSale", "Sold"]

Matteo Mortari

unread,
Nov 11, 2020, 12:51:32 PM11/11/20
to Kogito development mailing list
Hi Ravi,
I am lost about this last email from you?

You have an extended DT expression in the table:
? in ["PendingSale", "Sold"]

It is a FEEL expression for a Predicate and correctly using the ? magic variable of DMN.
I am pretty sure this compiles and works correctly.

The decision table static analysis however cannot handle extended DT expression (introduced with DMNv1.2 if I recall correctly) and it's simply stating ~"I cannot perform the DT static analysis on this type of table, for your information" which is emitted a Warning for analysis skipped on that kind of tables.

Does this clarify?
If not, can you kindly better articulate what is your actual question, please?

Thanks, hope this helps
MM

Ravi Mangalagiri

unread,
Nov 11, 2020, 1:13:06 PM11/11/20
to Kogito development mailing list
Yes. It works. I was curious regarding the warning during validation. 

Thanks for clarification.

Matteo Mortari

unread,
Nov 11, 2020, 1:26:03 PM11/11/20
to Kogito development mailing list
Reply all
Reply to author
Forward
0 new messages