Hi,
I have to create a KBS with a fact-file, which is extended every 10
minutes. I think it's possible to check in a certain intervall if the
facts-file is changing or not (like polling), but is there another
possibility?
How does JESS recognize when facts in a fact-file are changing
JESS simply loads the file and forgets about it.
If you want to monitor a file, you'll have to do that yourself and
then call clear and batch. If you don't want to reload the entire
file, you'll have to maintain state and keep track of the last line
and then only assert the new facts.
why not
On Wed, Mar 11, 2009 at 3:30 PM, Tanja Vicovac
tanja.vico...@tuwien.ac.atwrote:
Hi,
I have to create a KBS with a fact-file, which is extended every 10
minutes. I think it's possible to check in a certain intervall if the
facts-file is changing or not (like polling), but is there another
Hi Tanja,
There is also an API called JNotify that allows one to receive file system
events on Windows and LINUX.
See:
http://nixbit.com/cat/programming/libraries/jnotify/
http://sourceforge.net/projects/jnotify/
See if this is what you need. You can also have a thread periodically
monitor your
Instead of modifying the existing file, why not create a new file?
that way you can just load each new file at the set interval?
the other approach I've used in the past is to sent facts to JESS
using JMS messaging
peter
On Wed, Mar 11, 2009 at 1:00 PM, Jason Morris jason.c.mor...@gmail.com
I'm using the 30-day trial of Jess, and have already run into a problem:
Is there no engine.batch(InputStream) or equivalent for loading rule
sets? We have to deliver our *.clp files in eclipse plugins, and can
only access them by finding them in the Bundle and opening an input
stream. I can
Hi Eric,
Note that Rete.batch() (as well as all the variations available in the
jess.Batch class, see http://www.jessrules.com/jess/docs/71/api/jess/Batch.html
) will actually fall back to using ClassLoader.getResourceAsStream()
on the classpath. I know Eclipse's class loading is pretty