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
In ER2, I can see rules from different packages in the select box but rules from the same packages are missing.
Only rule in packages that had .class files were previously listed.
Rules in packages, not rule.
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.
I'm hitting this regularly with ER5.
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.
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
Verified with CR2.
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.
As suggested by lpetrovi, new BZ was filed for this: bug 1105174.