[jboss-jira] [JBoss JIRA] Created: (JBRULES-566) Not-Constraint is not working properly
Michael Frandsen (JIRA)
jira-events at jboss.com
Fri Nov 24 10:43:41 EST 2006
Not-Constraint is not working properly
--------------------------------------
Key: JBRULES-566
URL: http://jira.jboss.com/jira/browse/JBRULES-566
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Reteoo
Affects Versions: 3.0.4
Environment: WinXP, eclipse 3.2.0, JBoss Rules IDE 3.0.4
Reporter: Michael Frandsen
Assigned To: Mark Proctor
Attachments: Element.java
"Not"-Constraints are not evaluated like expected. See following example:
rule "Not is not correct working rule"
when
Element ( $a : a, $b : b, $c : c )
not( Element (a == $a) )
then
System.out.println( "rule fired" );
end
Asserted Facts:
workingMemory.assertObject( new Element(1,1,2) ); //a,b,c
workingMemory.assertObject( new Element(2,2,3) ); //a,b,c
The second element is not having the same a, so rule should fire two times, but it is not.
--
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