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.
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(" ");
The static dependent enums (vehicle example) use case is fixed. Further verification is currently blocked by bug 1044491.
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.
Should be fixed now.