Bug 1013693 - Can not use dependent enumerations in a same DSL sentence
Summary: Can not use dependent enumerations in a same DSL sentence
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: CR1
: 6.0.0
Assignee: manstis
QA Contact: Zuzana Krejčová
URL: http://jira.jboss.org/jira/browse/BRM...
Whiteboard:
Depends On: 1044491
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-30 15:36 UTC by Jiri Locker
Modified: 2018-11-14 16:49 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: BRMS-475
Environment:
Last Closed: 2014-08-06 20:16:05 UTC
Type: Bug
Embargoed:
raman.gupta: needinfo+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker BRMS-475 0 Major Closed Can not use dependent enumerations in a same DSL sentence 2016-12-01 15:09:11 UTC
Red Hat Issue Tracker GUVNOR-1106 0 Critical Resolved Guided Editor: Can not use dependent enumerations in a same DSL sentence 2016-12-01 15:09:11 UTC

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.


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