Bug 1013693

Summary: Can not use dependent enumerations in a same DSL sentence
Product: [Retired] JBoss BRMS Platform 6 Reporter: Jiri Locker <jlocker>
Component: Business CentralAssignee: manstis
Status: CLOSED CURRENTRELEASE QA Contact: Zuzana Krejčová <zkrejcov>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: alazarot, etirelli, lpetrovi, rrajasek
Target Milestone: CR1Flags: raman.gupta: needinfo+
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-475
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: BRMS-475 Environment:
Last Closed: 2014-08-06 20:16:05 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:
Bug Depends On: 1044491    
Bug Blocks:    

Comment 3 manstis 2013-10-16 12:18:05 UTC
The DSL definition in the JIRA is wrong.

Changing it to this:

[when]When the vehicle engine is {$engine:ENUM:Vehicle.engineType} and the fuel is {$fuel:ENUM:Vehicle.fuelType} = Vehicle(engineType=="{$engine}",fuelType=="{$fuel}")

Dependent enums, given the example in the JIRA, work ok in 6.0.x.

Comment 4 JBoss JIRA Server 2013-11-18 17:45:12 UTC
Raman Gupta <raman.gupta> made a comment on jira GUVNOR-1106

But For Database Query like

ENUMERATION ::

'Upc.bundleNames' : (new com.upc.ruleUtility.BundleConstraints()).getInactiveBundleList()
'Upc.Products[bundleNames]' : '(new com.upc.ruleUtility.UPCService()).getBundleAssociatedProductList("@{bundleNames}")'


And DSL::

Constraints {BundleList1:ENUM:Upc.bundleNames} and Associated Products {ProductList:ENUM:Upc.Products} = productSet.add("{ProductList}");

issues
1- Dependent drop-down is refreshing with every save and showing first value from the list even if i am selecting 3rd or 4th value.
2- View Source in showing blank for dependent drop down like productSet.add(" ");

Comment 5 Zuzana Krejčová 2013-12-18 12:48:19 UTC
The static dependent enums (vehicle example) use case is fixed. Further verification is currently blocked by bug 1044491.

Comment 6 Zuzana Krejčová 2014-01-14 10:10:17 UTC
Setting to MODIFIED as this cannot be fully tested now (comment 5), please move back to ON_QA once bug 1044491 is moved to ON_QA as well.

Comment 7 Lukáš Petrovický 2014-01-21 14:38:38 UTC
Should be fixed now.