Bug 797144 - BigDecimal 99.99B in Guided Decision Table changes into 0
Summary: BigDecimal 99.99B in Guided Decision Table changes into 0
Keywords:
Status: MODIFIED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor)
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: future
Assignee: manstis
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-24 11:32 UTC by Zuzana Krejčová
Modified: 2020-04-27 01:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 724448 0 high MODIFIED [GUVNOR-675]Support for BigDecimal in Guided Editor 2021-02-22 00:41:40 UTC

Internal Links: 724448

Description Zuzana Krejčová 2012-02-24 11:32:03 UTC
Description of problem:
BigDecimal field of a fact with a value 99.99B in Guided Decision Table changes into 0. The value can be entered via copy&paste (right click and click paste, no ctrl+v), it can't be typed in. You can avoid that in condition columns by giving the 99.99B value as a default value (when defining the column), it can be typed in there. 
When filling in values into cells, if you decide to only paste the 'B' part, you have to first enter the number, because after you enter the 'B', you can only delete that 'B', you can't add anything.


Version-Release number of selected component (if applicable):
BRMS 5.3.0 ER4


Steps to Reproduce:
1. Create a new model with a fact with BigDecimal field.
2. Create a guided decision table with a condition column with that fact and field, and action column updating it. Enter 99.99B as a default value in both columns.
3. Add a row, copy&paste 99.99B into the cells.
4. Add another row, leave it as it is.

  
Actual results:
No default values shown. Resulting value in the cells is 0 in both columns in the first row. The second row looks empty in Guvnor, but the source shows 99.99B in the rhs of this row's rule. Lhs is empty. 


Expected results:
Value should stay as the user entered it. Default values should be shown.


Additional info:
This is closely related to https://bugzilla.redhat.com/show_bug.cgi?id=724448 - Support for BigDecimal in Guided Editor.

The decision table passes validation.

Comment 4 Ryan Zhang 2012-03-21 09:55:36 UTC
Please verify this issue on ER5.

Comment 7 Ryan Zhang 2012-04-23 07:39:53 UTC
Update status to ON_QA. Please verify them against ER6.

Comment 9 manstis 2012-05-02 12:29:52 UTC
This has been fixed in community release 5.4.


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