[rules-users] Checking facts between them

Shyam, Pallav (MSCIBARRA) Pallav.Shyam at mscibarra.com
Tue Sep 2 12:06:06 EDT 2008


rule "compare dates"
	when
		FactObject($d1 : date)
		FactObject(date == $d1)
	then
 end

This assumes there is an object FactObject with attribute date. 

-----Original Message-----
From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Delaunay
Gaetan
Sent: Tuesday, September 02, 2008 9:17 PM
To: rules-users at lists.jboss.org
Subject: [rules-users] Checking facts between them

Hi all,

I was wondering if  it was possible to create a rule which checks if a
fact is equal to another one. For example in my case i'd like to compare
the date of fact with the date of fact +1. I hope you understand what i
mean.

What kind of rule will be suitable to do that?

Thanks
Gaetan
_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.




More information about the rules-users mailing list