Bug 1048950 - Invalid enumeration not detected
Summary: Invalid enumeration not detected
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER2
: 6.0.1
Assignee: manstis
QA Contact: Pavel Kralik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-06 15:24 UTC by Zuzana Krejčová
Modified: 2016-08-01 01:08 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 19:59:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
successful validation of an invalid enumeration (103.64 KB, image/png)
2014-01-06 15:24 UTC, Zuzana Krejčová
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 995085 0 unspecified CLOSED Guided Decision Table, enumerations: only the last option is visible 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1073001 0 high CLOSED Advanced enumeration stopped working 2021-02-22 00:41:40 UTC

Internal Links: 995085 1073001

Description Zuzana Krejčová 2014-01-06 15:24:35 UTC
Created attachment 846146 [details]
successful validation of an invalid enumeration

Description of problem:
An invalid enumeration is not detected. Validating invalid enumerations gives you 'Item successfully validated' notification. Guided rule editor might not open if you have such an enumeration in your project.


Version-Release number of selected component (if applicable):
BPMS 6.0 ER7


Steps to Reproduce:
For a POJO A with String attributes a and b:
1. Create a new Enumeration.
2. Click Add enum and type in A into the first field, a into the second, ['a','b','c'] into the third. Save and validate. (OK so far.)
3. Click Add enum again and type in first A, into the next field b[a="b"] and into the last one ['b1','b2']. Save and validate.
4. Create a new guided rule or open an existing one.


Actual results:
After step 3, validation gives you 'Item successfully validated' notification.
After step 4, the guided editor is blank.


Expected results:
After step 3, validation gives you meaningful validation error message.
After step 4, the guided editor opens without problems, with the right content.

Comment 3 manstis 2014-02-27 13:55:37 UTC
Enumeration validation has been improved; however ideally the Enumeration Editor should be enhanced to prevent erroneous definitions in the first place. This recommendation should really be the subject of a new "Feature Request" BZ.

Comment 4 Pavel Kralik 2014-03-20 14:14:06 UTC
Invalid enumeration evaluation works as seen in "Expected results".

Verified for brms-6.0.1-ER2 deployable for eap6.


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