[rules-users] Rules with 'From' condition with another not using From causes problem
Arjun Dhar
dhar_ar at yahoo.com
Wed Aug 22 13:28:48 EDT 2007
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, origin=="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
Am posting on JIRA
More information about the rules-users
mailing list