I am working on a system where by the user has the ability to define rules
dynamically. 

The rules consist of data from various source (e.g. DB columns or constants
or global variables).

The rules are executed on a set of data from DB and the results are stored
back into DB.

Now what is the best way to get the rules into Jess, using Jess syntax like
engine.executeCommand("(jess syntax)") or using Java API? 

The facts are added to the engine and value is read back from engine using
fetch() this seems like a slow process...is there a better way?

The work flow looks like this:

(defglobal variables)
(defclass)
(deftemplates)
(defrules)

foreach-data-in-DB
  assert-data
  run-engine
  fetch-results-and-modify-bean-value
next-data

write-results-back-to-DB

What would be the best approach for the above scenario?

Thx,
_H



-- 
View this message in context: 
http://www.nabble.com/Adding-rules-dynamically-and-fetching-results-from-Rete-engine--tf3441521.html#a9596430
Sent from the Jess mailing list archive at Nabble.com.


--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to