[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1110) Rules with 'From' condition with another not using From causes problem

Arjun Dhar (JIRA) jira-events at lists.jboss.org
Mon Aug 27 08:29:18 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBRULES-1110?page=comments#action_12373958 ] 
            
Arjun Dhar commented on JBRULES-1110:
-------------------------------------

ok, will do so this weekend. Kindly do not close the bug till then. I'l lalso do some testing and verification at my end. The from works over a JDBC Connections. The actual code is really big with the base classes etc; so will try and dev a scaled down test case to help you.

In the process I may discover things myself. Kindly wait till this weekend, next monday before you decide to close this bug.

Thanks

> 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: Decision tables, Reteoo
>    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

        



More information about the jboss-jira mailing list