Bug 754111 - "this" field of a Fact gives access to a different Fact [Declarative model]
Summary: "this" field of a Fact gives access to a different Fact [Declarative model]
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor)
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: BRMS 5.3.0.GA
Assignee: manstis
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-15 12:40 UTC by Zuzana Krejčová
Modified: 2020-04-27 01:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)
Business rule showing the wrong subfield (19.75 KB, image/png)
2011-11-15 12:40 UTC, Zuzana Krejčová
no flags Details

Description Zuzana Krejčová 2011-11-15 12:40:58 UTC
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.

Comment 1 manstis 2011-11-25 09:54:59 UTC
Using an expression gives the correct results.


Note You need to log in before you can comment on or make changes to this bug.