Bug 858167
| Summary: | Guvnor: Business Rule - Modal alert, which requires halt the script, occurs when enumeration is defined in DSL | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise BRMS Platform 5 | Reporter: | Sona Mala <smala> | ||||
| Component: | BRM (Guvnor) | Assignee: | manstis | ||||
| Status: | VERIFIED --- | QA Contact: | |||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | BRMS 5.3.1 | CC: | manstis | ||||
| Target Milestone: | ER2 | Keywords: | Regression | ||||
| Target Release: | BRMS 5.3.1 GA | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
Previous program logic error occurred when enumeration was defined for a DSL key; this issue caused Java Script prevention due to an infinite loop. Corrected program logic now allows enumeration values to be defined for DSL keys.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 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: | |||||||
| Attachments: |
|
||||||
Simple fix, so completed (before this becomes a blocker). Verified for BRMS 5.3.1 ER2 and designer 2.3.1-DEV Updated text for the Release Notes. Thanks for the Doc Text information. - Doug |
Created attachment 613900 [details] Repository with enumeration, model and DSL definitions Description of problem: Version-Release number of selected component (if applicable): BRMS 5.3.1 ER1 How reproducible: Every time Steps to Reproduce: 1. Create simple enumeration ('Person.sex': ['male','female']) 2. Create declarative model (Person: String sex; Integer age) 3. Create DSL ([when]Person which sex is {v:ENUM:Person.sex} = p:Person(sex=="{v}")) 4. Create new business rule 5. - click on icon "Add condition to this rule" 6. - select "Person which sex is {v}" 7. - confirm dialog (click OK) Actual results: There is a modal alert which has two options "halt the script" and "wait more time". If I click on option "wait more time" then the alert occurs again (try 5 times) Expected results: No alert occurs. Just show DSL sentence in business rule. Additional info: A repository with assets from step 1 to step 3 is attached.