open-formulieren / open-forms

Smart and dynamic forms
https://open-forms.readthedocs.io
Other
34 stars 25 forks source link

DMN: provide better support for boolean-like values #4292

Open sergei-maertens opened 4 months ago

sergei-maertens commented 4 months ago

Currently to get a boolean passed to the DMN evalution you can only do so by using a checkbox widget (or a JSON logic rule perhaps that translates something else into a boolean).

Using a radio widget with values "true" and "false" should have an option to "cast" this value to a boolean type (probably in the DMN action configuration?).

The Camunda API call can interpret a string value "true" correctly if we provide the type: Boolean information, but now our backend sends type: String.

joeribekker commented 3 months ago

Refinement: Joeri suggests to create component that renders a checkbox as a radiobutton yes/no. Sergei says it impacts more than just booleans, ie date/times. The behaviour to use a checkbox for true/false and nothing else should be documented at least. We dont have an idea about how to solve this exactly.