Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1792

[Guided Decision Table] Default value of a column is not validated with the field data type

XMLWordPrintable

    • 2018 Week 11-12
    • Hide
      1. Prepare some data object that will consist of one integer field
      2. Create new Guided Decision Table
      3. Add new condition column into the table
      4. As fact select the prepared data object
      5. As field select the only one integer field
      6. Select equal to as operator
      7. Put some strings into optional value list
      8. Select any string value as Default Value
      9. Confirm with OK Button
      10. Append row into the table
      11. Check the source code
        • There will be integer field with string value comparison
      Show
      Prepare some data object that will consist of one integer field Create new Guided Decision Table Add new condition column into the table As fact select the prepared data object As field select the only one integer field Select equal to as operator Put some strings into optional value list Select any string value as Default Value Confirm with OK Button Append row into the table Check the source code There will be integer field with string value comparison
    • NEW
    • NEW

      During definition of a condition or an action column, user has possibility to specify 'Default value' for this column. The problem is that the default value is not validated with the field data type. In practice it means that even when the column expects only Integer values (because of the field data type), the default value still can be some String value. The 'Default value' inputs should be validated like particular cells of the guided decision table. In those cells the user is not able to put String value into the cell where are expected only Integer values.

            rh-ee-jomarko Jozef Marko
            rh-ee-jomarko Jozef Marko
            Jozef Marko Jozef Marko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: