Bug 724320 (BRMS-265) - Defining a checkbox via DSL doesn't work anymore - generated rule is broken
Summary: Defining a checkbox via DSL doesn't work anymore - generated rule is broken
Keywords:
Status: CLOSED NEXTRELEASE
Alias: BRMS-265
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor)
Version: 5.0.0 GA
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: 5.0.2
Assignee: Jaroslaw Kijanowski
QA Contact:
URL: http://jira.jboss.org/jira/browse/BRM...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-16 10:00 UTC by Jervis Liu
Modified: 2013-11-07 22:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-23 13:11:22 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker BRMS-265 0 None None None Never

Description Jervis Liu 2010-03-16 10:00:51 UTC
Date of First Response: 2010-03-23 09:11:22
securitylevel_name: Public

https://jira.jboss.org/jira/browse/GUVNOR-373

Comment 1 Jervis Liu 2010-03-16 10:25:04 UTC
Merged to BRMS 5.0.2 branch as a side effect

Comment 2 Jaroslaw Kijanowski 2010-03-23 13:11:22 UTC
Verified in BRMS 5.0.2 CR1

Comment 4 Jervis Liu 2010-03-29 06:00:52 UTC
Cause: when would users notice this bug?
Following DSL (taken from the mortgages sample) generates a wrong editor. 

[when]When the applicant approval is {bool:BOOLEAN:checked} = applicant:Applicant(approved=={bool})

The result can no longer be validated.

Consequence: what happens when the bug is encountered ?

Fix: how was this fixed ?
fixed as a bug. 

Result: what happens now when the "Cause" occurs ?
The problem does not occur any more. 

Comment 5 Dana Mison 2010-03-31 04:46:17 UTC
I'm assuming that this is related to the " 'checkboxes=checked/unchecked' are now 'dropdown=true/false' issue

Is this JIRA just related to the sample being broken ?  
Can you supply more details about the fix ?

Comment 6 Toni Rikkola 2010-04-07 08:32:27 UTC
Every boolean DSL widget that was added or edited had this issue. It did not affect any previous rules that were made if they were not opened and saved again.

Boolean fields only accept true or false as value. Because of this issue the value was always set to checked or unchecked and this did not work. 

I don't think that the boolean DSL broke the sample, I don't think that the sample uses boolean DSL. But it does use dates in DSL and that did break it.


Note You need to log in before you can comment on or make changes to this bug.