Bug 996490 - Rules not listed in Test Scenario - New expectation dialogue
Summary: Rules not listed in Test Scenario - New expectation dialogue
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: CR1
: 6.0.0
Assignee: Alexandre Porcelli
QA Contact: Zuzana Krejčová
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-13 09:35 UTC by Zuzana Krejčová
Modified: 2016-08-01 01:07 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Summary: While creating a Test Scenario, no EXPECT rules are visible for the user to add to the scenario. The EXPECT rules list is always empty. Cause: Consequence: Fix: Result:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:16:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1105174 0 high CLOSED WAS: Rules not listed in Test Scenario 2021-02-22 00:41:40 UTC

Internal Links: 1105174

Description Zuzana Krejčová 2013-08-13 09:35:17 UTC
Description of problem:
In Test Scenario, users can expect certain rules to fire. If you click the plus sign next to EXPECT, it brings up a New expectation dialogue. In it is a select box that should contain all the rules available. It is empty, no rules are offered.
The package that contains the Test Scenario also contains a Guided Rule and a Guided Decision Table with 3 rows.


Version-Release number of selected component (if applicable):
kie-wb 6.0 CR1

Comment 1 Jiri Locker 2013-08-30 17:16:52 UTC
In ER2, I can see rules from different packages in the select box but rules from the same packages are missing.

Comment 2 Toni Rikkola 2013-09-20 06:30:55 UTC
Only rule in packages that had .class files were previously listed.

Comment 3 Toni Rikkola 2013-09-20 06:31:50 UTC
Rules in packages, not rule.

Comment 7 Zuzana Krejčová 2013-10-16 08:46:30 UTC
I created a new package, guided rule and guided dt with one row, saved these assets. Then I created a new TS, added the correct import, saved. Tried to add a rule expectation - no rules were listed.

Comment 9 Jiri Locker 2013-12-10 17:46:54 UTC
I'm hitting this regularly with ER5.

Comment 10 Zuzana Krejčová 2013-12-17 10:02:25 UTC
It behaves better, but...

1:
Create a Test Scenario (close the editor). Then create a new Guided Decision Table with a row. Reopen the TS and try to add the new rule - it's not in the list. Create another GDT and reopen the TS - the first GDT rule is in the list, the second isn't.

2:
Create a rule and a TS in project A, do the same for project B. Switch back to project A, open TS you created in there, the New expectation dialogue will offer rule from project B. To fix this, you have to save the TS.

3:
If you create a new rule or GDT while leaving a TS open, you have to, of course, reopen that TS to see the new rules. I'd say that's ok though.

Comment 11 Alexandre Porcelli 2014-01-07 23:12:21 UTC
Fix pushed into master and product branch of guvnor and drools-wb repositories:

 (6.0.x) https://github.com/droolsjbpm/guvnor/commit/cce583639
(master) https://github.com/droolsjbpm/guvnor/commit/eb56c9e9d

 (6.0.x) https://github.com/droolsjbpm/drools-wb/commit/be8e3b86b
(master) https://github.com/droolsjbpm/drools-wb/commit/1237fd90f

Comment 12 Zuzana Krejčová 2014-01-26 16:28:14 UTC
Verified with CR2.

Comment 13 Zuzana Krejčová 2014-06-04 15:01:50 UTC
We're hitting this issue again with 6.0.2 ER3 on WebSphere. 
This time, to get the rules into the New expectation modal, you have to switch packages. Even without reopening the TS, simply switching a package and then bringing up the New expectation modal makes the rules appear.

Comment 14 Zuzana Krejčová 2014-06-05 13:56:13 UTC
As suggested by lpetrovi, new BZ was filed for this: bug 1105174.


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