Loading dynamic drop-down values in Guided Rule Editor based on the selected values from a previous drop-down in BRMS 6
Issue
- The requirement is to load huge number of drop-down values in the
Guided Rule EditorofBusiness Centralby querying database, which will be used to define the rules. Data enumeration has been used to load drop-down values dynamically, which is good option for small amount of data but to load huge data it does not look to be a suitable option to dynamically load all drop down values at once. May be an alternate solution could be to split the number of records intocategoriesso that if user chooses acategoryfrom first drop-down then the next drop-down in theGuided Rule Editorwould dynamically identify the selectedcategoryfrom the first drop-down to fetch the database to collect the related result-set/data , which would be relatively lesser in terms of records to be displayed in one drop-down. Now the major question is, doesGuided Rule Editorsupport this kind of feature so that if users change/select a value from one drop-down the other drop-down dynamically loads it values with the selected values from the first drop-down? - The requirement is such that the selected option from one drop-down in
Guided Rule Editorcan be used as a criteria to populate the list of the options for a second drop-down in the same rule. Of course both the drop down's values would be populated using the feature ofEnumeration. This is how it looks like as an example. First enumeration which populates the values forslTypefield ofSelectorfact in the first drop down would look like the following.
'Selector.slType' : '(new com.test.selection.ReturnSelectionType()).returnType()'
Once a user selects the value of slType field to any value (say, Car) from the populated first drop down , the second drop down's enumeration (which populates the slTypeDetails field of Selector fact) would use the chosen value from the first drop down to populate the values for the second drop-down dynamically. How to achieve this requirement?
Environment
- Red Hat JBoss BRMS (BRMS)
- 6.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.