Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1063394

Summary: Guided editor: values from nested enum are not reloaded after reopening the rule
Product: [Retired] JBoss BRMS Platform 6 Reporter: Jiri Locker <jlocker>
Component: Business CentralAssignee: manstis
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Locker <jlocker>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0.0CC: etirelli, jlocker, kverlaen, rrajasek
Target Milestone: ER2   
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:57:43 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:
Embargoed:
Attachments:
Description Flags
Person.java none

Description Jiri Locker 2014-02-10 15:47:55 UTC
Description of problem:
I can successfully use nested Java enums thanks to fixing bug 1047879. But when I save the rule and reopen it the enum select box is reset to "Choose..." and contains no other values.

Version-Release number of selected component (if applicable):
CR2

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
Enum select box is reset and doesn't contains enum values after reopening the rule.

Expected results:
Guided editor should reopen the rule exactly as it was saved. All nested enum values should be loaded into the select box.

Additional info:

Comment 1 manstis 2014-02-11 13:38:12 UTC
Hello, I used the Person2.jar in the referenced BZ and created a rule with Person( sex == Sex.MALE ); saved it and re-opened it without any problem. Can you please advise if I've missed something out?

Comment 2 Jiri Locker 2014-02-11 15:32:12 UTC
Created attachment 861817 [details]
Person.java

Mike, I believe you will replicate if you commit and push this class to a project (updating the package declaration) and use it instead of model uploaded in a jar.

Comment 3 manstis 2014-02-12 12:13:11 UTC
Hi Jiri. I made a JAR with the provided class (thanks for that) and things still worked as expected/required. I'll try again pushing the source to the repository as you suggest too.. it has to be something specific to this specific use-case.

Comment 4 manstis 2014-02-12 13:20:17 UTC
Hi Jiri, I've managed to do that now and it still works OK. Are you sure you've not performed any additional other steps too? I simply cloned (with SSH), added the class, committed, pushed, saw the class in the workbench, made a rule using it (as described elsewhere), saved it, closed the editor and re-opened it. Still working ok... I'll try stopping server and restarting...

Comment 5 manstis 2014-02-19 13:36:08 UTC
I tried stopping and restarting.. everything appears to be working OK.

Did you want to set to MODIFIED and check with the next release (in case there's been a change made elsewhere for something else that has fixed the issue)?

Comment 6 Jiri Locker 2014-02-27 18:03:44 UTC
Thanks for trying. This is only reproducible if there is another Person class in the project. Bug 1069288 will probably fix this one too.