| Summary: | "this" field of a Fact gives access to a different Fact [Declarative model] | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise BRMS Platform 5 | Reporter: | Zuzana Krejčová <zkrejcov> | ||||
| Component: | BRM (Guvnor) | Assignee: | manstis | ||||
| Status: | VERIFIED --- | QA Contact: | Lukáš Petrovický <lpetrovi> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | BRMS 5.3.0.GA | CC: | lpetrovi, manstis | ||||
| Target Milestone: | --- | ||||||
| Target Release: | BRMS 5.3.0.GA | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | 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: | |||||
| Attachments: |
|
||||||
Using an expression gives the correct results. |
Created attachment 533756 [details] Business rule showing the wrong subfield Description of problem: I have a repository with only 2 Declarative models, each with 1 Fact, each Fact with 1 field. The are unrelated, they do not extend one another in any way. In a Business Rule, if I add the second (according to the time of creation of the model) Fact, i add a field restriction on "this" and try to pick a subfield of "this", I get the option of field from the first Fact. I'm using these: - model1 with: declare Fact1 field1: String end - model2 with: declare Fact2 field2: String end - a Business rule, as the screenshot shows it. Version-Release number of selected component (if applicable): BRMS 5.3.0 dev5 Steps to Reproduce: with empty repo 1. Create a new Decl. model, create a new Fact, Fact1 and give it a field, field1. Save. 2. Create another Decl. model, in it, create a new Fact, Fact2 and give it a field, field2. Save. 3. Create a new Bus. Rule, add Fact2 to conditions, click it to "add a restriction on a field" and choose "this". 4. Click "this" and add a subfield. Actual results: Options shown: "..." and "field1". Expected results: There should be "field2" instead of "field1" as an option. Additional information: The same happens in BRMS 5.2.0 GA.