[jboss-jira] [JBoss JIRA] (DROOLS-5044) Allow to set default value for columns other than 'literal equals to ...'
Jozef Marko (Jira)
issues at jboss.org
Fri Jul 10 08:54:00 EDT 2020
[ https://issues.redhat.com/browse/DROOLS-5044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jozef Marko resolved DROOLS-5044.
---------------------------------
Fix Version/s: 7.41.0.Final
Resolution: Done
Marking as resolved, as the related jira is done
> Allow to set default value for columns other than 'literal equals to ...'
> -------------------------------------------------------------------------
>
> Key: DROOLS-5044
> URL: https://issues.redhat.com/browse/DROOLS-5044
> Project: Drools
> Issue Type: Feature Request
> Components: Guided Decision Table Editor
> Reporter: Werner Van Herrewegen
> Assignee: Michael Anstis
> Priority: Major
> Fix For: 7.41.0.Final
>
> Attachments: image-2020-02-11-14-10-05-686.png, image-2020-02-11-14-28-02-448.png
>
>
> 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
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list