Bug 1075745
| Summary: | True "when" result not firing "then" statements | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Adam Baxter <abaxter> | ||||
| Component: | BRE | Assignee: | Maciej Swiderski <mswiders> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Tomas Schlosser <tschloss> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.0.0 | CC: | abaxter, mbaluch, mswiders | ||||
| Target Milestone: | ER1 | Keywords: | Reopened | ||||
| Target Release: | 6.0.2 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-08-06 19:53:45 UTC | 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: |
|
||||||
Adam,
I am unable to run your test case because it is missing classes. I modified it slightly in order to be able to run and I found no problem using the code from 6.0.1.ER2.
The use case is also very basic, so either it is something that was already fixed or we need more details to understand what the problem is.
I will close this ticket as "NOTABUG". If you still have problems with 6.0.1.ER2, can you please reopen the ticket and attach a self contained test case that demonstrates the problem?
FYI, what I changed in your test was just the way the kieSession is created:
KieServices ks = KieServices.Factory.get();
ReleaseId releaseId = ks.newReleaseId("foo", "bar", "1.0.0");
KieModule km = createAndDeployJar(ks, releaseId, accountRule, customerRule);
KieContainer kc = ks.newKieContainer(releaseId);
KieSession ksession = kc.newKieSession();
I have not changed any of your assertions and they all succeed.
Edson, this fails with combination of jbpm configuration where we have custom agenda event listener that calls fireAllRules on matchCreated and that is causing problems here as I believe it simply makes rules deactivated matchCreated level causing RHS to not be invoked. I believe we can remove the fireAllRules from our listener as it should not be used any more - was used for start timers for processes but that now is based on jBPM TimerManager and not timer rules. I'll need to double check with Kris if that's the only case why we needed. Feel free to assign the bz to me. Maciej, ok, thank you, I am assigning the ticket back to you then. fixed jbpm master: https://github.com/droolsjbpm/jbpm/commit/bfcba3a9ac3f51349c90eb5f44ab8aa2e798d4a6 6.0.x: https://github.com/droolsjbpm/jbpm/commit/aacbd0a12933041db18100d8a11550e35027d022 Verified in BPMS 6.0.2 ER2. |
Created attachment 873684 [details] Reproducer class files Description of problem: DRL rule successfuly tests the rule's "when" statement, but, even if the rule returns true, the "then" statements are never run. Version-Release number of selected component (if applicable): Community 6.0.0.Final, 6.0.1.Final. Appears to be a regression, though I do not know the last time this worked. How reproducible: Consistent Steps to Reproduce: 1. Import the attached zip's Java classes into jbpm-runtime-manager/src/test folder in the appropriate packages. 2. Run the DRL_Failure_Test Junit 3. Actual results: JUnit tests should pass Expected results: JUnit tests fail Additional info: