DMN Editor: Render evaluation highlights in the Boxed Expression Editor (Decision Tables + Boxed Conditional Expressions) #1547
Labels
area:dmn
Related to DMN
area:tools
Issues affecting Apache KIE tooling projects
type:enhancement
Something that already exists needs to be improved
This issue is another part related to #1527
We should extend the functionality of the boxed-expression-component to be able to highlight evaluation hit count in the Decision Table and Boxed Conditional Expression using the evaluation results of DMN Runner. Disabling the "Evaluation Highlights" (#1527) must normally render the Boxed Expression Editor.
Figure 1 shows a Decision Table that had multiple rule hits and is highlighted in a purple color (rgb(215 201 255)). The number of hits is represented in the top left corner of the index row with a triangular badge. Rules that didn't have a hit must appear dimmed, with a grayscale and reduced opacity. In the case of the DMN Runner table, hovering the mouse on top of the badge must render the responsible input rows as illustrated.
Figure 2 shows a Boxed Conditional Expression with the "then" expression highlighted, and the "else" expression dimmed. This example follows the same changes of the Decision Table highlights.
Figure 3 shows an example with nested expressions and a high number of hits. When the number of hits gets higher, the font size gets lower to accommodate the value inside the badge. The expression header inside the condition is highlighted to show the user that the entire expression is part of the condition.
The text was updated successfully, but these errors were encountered: