You need to bind your fact to a variable, so that you can call the getFileOld
method from a non static context. Also, I think you'd be better to use !=
rather than the 'not' keyword ('not' should be read 'doesn't exist' which
doesn't work if you want to bind a value). So your rule should be something
like:
$file : FileData(fileOld != fileNew)
rule "files not equal"
when
thendifference($file.getFileOld(),$file.getFileNew());
System.out.println("files are not equal");
end
--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-problem-with-drools-tp4028402p4028404.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users