Bug 724320 (BRMS-265)

Summary: Defining a checkbox via DSL doesn't work anymore - generated rule is broken
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jervis Liu <jliu>
Component: BRM (Guvnor)Assignee: Jaroslaw Kijanowski <kijanowski>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: 5.0.0 GACC: mproctor, toni
Target Milestone: ---   
Target Release: 5.0.2   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-265
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-23 13:11:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.