Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1153

Scenario Simulation shows misleading data type if DMN applies a constraint

    Details

    • Affects Build:
      CR1
    • Target Release:
    • Steps to Reproduce:
      Hide
      1. Open an existing DMN file
      2. Add new structure, for example Vacation
      3. Add new field to Vacation, for example Price of type number
      4. Start edit Price field, click Add Constraints, fill some constraints for the Price
      5. Save all changes of the DMN file save and close it
      6. Create new Test Scenario for the previously used DMN
      7. Pick some column, expand the right site panel, pick Test Tools dock
      8. You will notice incorrect Price data type
      Show
      Open an existing DMN file Add new structure, for example Vacation Add new field to Vacation , for example Price of type number Start edit Price field, click Add Constraints , fill some constraints for the Price Save all changes of the DMN file save and close it Create new Test Scenario for the previously used DMN Pick some column, expand the right site panel, pick Test Tools dock You will notice incorrect Price data type
    • Affects:
      Release Notes
    • Release Notes Text:
      If DMN data type has a constraint over some field, then the data type of the field in not shown correctly to the user of Scenario and Simulation editor.

      Description

      User has possibility to declare custom DMN data types. Furthermore such data types can apply a constraint to it. For example user can restrict a number to smaller range of values. The issue is a Scenario Simulation designer then shows a misleading data type in the UI.

      In the attached screenshots we have DMN Vacation data type, with a constraint over money field. Then in Scenario Simulation the data type if this field is money instead of number.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                danielezonca Daniele Zonca
                Reporter:
                jomarko Jozef Marko
                Tester:
                Jozef Marko
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: