Created attachment 607482 [details] External data source (class Helper) Description of problem: When an enumeration is created by external data sources (class Helper) and one field depends on the other then this field disappears after the condition table in BRL editor is refreshed by adding a new fact, field or more option. Version-Release number of selected component (if applicable): BRMS standalone 5.3.0 GA How reproducible: every time for external data source Steps to Reproduce: 1. Paste class Helper (is attached) into jboss-brms.war/WEB-INF/classes/test 2. Start server 3. Import repository.xml (is attached) 4. Create new business rule (guided editor) 5. Add condition: Fact 6. Add field restriction: field1 and choose Literal value 'val2' 7. Add field restriction: field2 and choose Literal value 'f1val2b' 8. Add: - more option to this field or - condition: Fact2 or - field restriction 9. Set value of field1 again Actual results: After step 8, element for the value of field2 disappears. This element exists but it is invisible and his text is set to "". After step 9, element for the value of field2 appears. Expected results: After step 8, element for the value of field2 is still visible. I can skip step 9. Additional info:
Created attachment 607483 [details] Repository with the definition of model and enum
The enum drop down is effectively two components: (1) A Label that shows the current value, (2) [when the label is clicked] A ListBox showing the possible values. Where the enum was defined with an external data-source the Label was not being updated to show the value of the constraint when the remote call completed.
Verified for brms standalone 5.3.1 ER1
Thank you for the doc text information. I have updated the paragraph for the Release Notes. - Doug