[
http://jira.jboss.com/jira/browse/JBRULES-1110?page=all ]
Edson Tirelli updated JBRULES-1110:
-----------------------------------
Fix Version/s: FUTURE
(was: 4.0.1)
Arjun,
Can you please provide a self contained test case? I was not able to reproduce the problem
with trunk (revision #14592) and our test classes.
Thanks
Edson
Rules with 'From' condition with another not using From
causes problem
----------------------------------------------------------------------
Key: JBRULES-1110
URL:
http://jira.jboss.com/jira/browse/JBRULES-1110
Project: JBoss Rules
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Reteoo, Decision tables
Affects Versions: 4.0.0.GA
Environment: Any
Reporter: Arjun Dhar
Assigned To: Edson Tirelli
Fix For: FUTURE
Test case:
Write a Rule that uses a From clause and on another object does not use a from clause:
example:
#From row number: 28
rule "Rules_28"
when
cntct: Contact(initialized==true)
config: BooleanConfiguration(value==true) from meta.getConfiguration(cntct.getClient(),
"Param1")
pref: Relation(contact==cntct, type=="old") or (eval(false==true) and not
Relation(contact==cntct, type=="old"))
then
System.out.println("Fired 28");
end
If All 3 are true:
1. Delete Condition 2 --> Rule fires
2. Delete COnditon 3 (But keep 2) --> Rule fires
3. Keep 2 & 3 (with 1) --> Rule does not fire
Whats strage is that conditon 1 does not use from and it works with condition 2 without
any problem, but when 2 & 3 are there together the rule does not work.
Please see if it is a bug
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira