apache / incubator-kie-issues

Apache License 2.0
12 stars 1 forks source link

[DMN Editor] Enable modification of constraints on DT columns #371

Closed hanjoosten closed 1 month ago

hanjoosten commented 1 year ago

As @jomarko described in this blog, it is possible to add restrictions to an input row of a decision table. If a common type is being used during the generation of the DT, the values of that type are copied into the definition of that column. However, as a user of the editor, I have no control of these values. If the list of values in the type is modified, there is no way to sync those values. There is no way to see the restrictions, let alone to modify them. Currently the only way to do so is to hack the xml in a text editor. Wat I would like to have:

(This was first discussed in this zulip thread)

jomarko commented 1 year ago

@hanjoosten thank you for a issue. I tend to think A way to view and edit the restrictions of a column is already available in the modeler.

Here is how my custom type is defined: Screenshot 2023-06-28 112557

Then I prepared one InputData node InputData-1 connected to a decision node Decision-1. Then Setting expression type for Decision-1 as Decision Table I get.

Screenshot 2023-06-28 112623

Please notice Constraint section in the panel on right side.

hanjoosten commented 1 year ago

@jomarko thanks for this clarification. I totally overlooked the properties in this regard. I tend to right-click in the blue header box when in search of such things. My bad. So only remains a feature to keep the values in the constraint in sync with the actual type.