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

Allow to set default value for columns other than 'literal equals to ...'

XMLWordPrintable

    • User Experience
    • NEW
    • NEW

      Hi,
      Sometimes I need to be able to put a default 'TRUE' value for conditional columns that don't make any sense to have a 'FALSE' value.

      I give you the following case:

      When I want to update a fact A in the action part based on the value of a fact B on the condition part, it obviously makes sense to have an additional condition that fact A exists.

      But this results (as seen in the example screenshot below) in the option to flag the column that fact A exists TRUE/FALSE with a 'default' on FALSE.

      When you leave it FALSE, you get a compile error because the resulting rule code excludes the line, when you flag it TRUE, the line is shown ok and you don't get any errors.
      So the only real value that is possible is TRUE and it must be flagged TRUE for each row in the decision table.

      It is really hard for me to explain this to business users, when I give them the option to uncheck the column.

      Workaround/solution would be to allow a default value 'TRUE' and actually hide the column.
      Because for the business person, he doesn't care.
      And the pity is that there actually is an option to add default values but only for literal equals...

      More generally this is a need to add some rule text that is always in the generated resulting rule code in the LHS or RHS rule part for all rows in the decision table.

      kr,
      Werner

              manstis@redhat.com Michael Anstis
              werner.vanherrewegen Werner Van Herrewegen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: