Hi!
>It looks like that we are missing Test.java (comment on rules.txt)
Sorry! This is just a documentation error. I've renamed Test.java to
Sample.java. You should have all the source files.
>It's running fine (report "Created emp record ......") but I didn't see
data
>insert into scott.emp table.
>Did I miss something?
Perhaps, the sample is a little misleading.
First of all, the package you received can only read (!) from databases.
You need the version we've already talked about in order to be able to also
write facts to databases.
Secondly, the sample just simulates insertions made in the scott.emp table.
In my original system, these facts would be automatically created using
database triggers that create XML change notifications. The change
notifications are then asserted as Jess facts. The sample file facts.txt
contains facts (e.g., (scott-emp-insert (empno 1) (ename Thomas) (deptno
1))) that would normally be generated this way.
The sample actually demonstrated a Jess ECA (event-condition-action) rule.
Upon reception of a signal / change notification a condition (is there any
corresponding record in the scott.dept table?) is checked using Jess'
backward chaining capabilities and my framework. If the condition is met, a
message is printed.
Thomas
________________________________
Dipl.-Inform. Thomas Barnekow
Fraunhofer IAO, Competence Center Software Technology
mail: Nobelstra�e 12, D-70569 Stuttgart,
Germany
phone: +49 (0) 711 / 970 - 2346
fax: +49 (0) 711 / 970 - 2300
mobile: +49 (0) 172 / 7126018
email: [EMAIL PROTECTED]
web: http://www.swt.iao.fhg.de
---------------------------------------------------------------------
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]
---------------------------------------------------------------------