I just extended Rete to make the example simpler. I also tried it with
an independent JessListener implementing class, but the problem is the same.
I tried to do Rete.addJessListener() after bload, just as you suggested,
but the problem remains.
So, I ask again: what could be wrong in my bsaved
What if you make the Dispatcher rule an auto-focus one?
Actually, I thought about this kind of problems before. I mean, if there
are two modules with auto-focus rules, and rules in both modules are
activated, which module gets focus? Is it related with the conflict
resolution strategy being used?
Sure, you would have all kinds of problems with a design like this;
it's a bad idea. Get rid of the Dispatcher rule, write the individual
rules like this:
(defrule ModuleA::RulesA
(declare (auto-focus TRUE))
?context - (MAIN::FactX(OBJECT ?contextObject) (env ModuleA))
...
Two
One explanation consistent with your observations is that the bsaved
file already contains (qwe) and (asd) facts. If you attempt to assert
a fact that already exists in working memory, the assert method
returns FALSE and no event is sent.
On Jul 5, 2007, at 5:47 AM, Henrique Lopes Cardoso
No, that is not the case.
I tried this:
jel.assertString((qwe));
jel.retractString((qwe));
jel.assertString((qwe));
and it still doesn't work. I only get the retract event.
There must be something else going on in the bsaved file. Any clue?
Henrique
Ernest
It's a puzzle to me, too. If you want to send me (not the list) the
bsaved file, and let me know what version of Jess you're working
with, I can have a look at it.
On Jul 5, 2007, at 8:08 AM, Henrique Lopes Cardoso wrote:
No, that is not the case.
I tried this:
CALL FOR PAPERS: PIKM 2007 (PH.D. WORKSHOP IN CIKM 2007)
1st ACM International Workshop for Ph.D. Students in Information and
Knowledge Management
Lisboa, Portugal, November 9, 2007
http://www.cs.sfu.ca/~jpei/PIKMworkshopCFP.htm
The goal of the PIKM workshop is to encourage Ph.D. students to
On 7/3/07, Wolfgang Laun [EMAIL PROTECTED] wrote:
There are some recent contributions to the topic Design Patterns on
the Jess Wiki (http://www.jessrules.com/jesswiki/view).
And here's FactsAsSlotValues, another design pattern. Given the right
data, it may be used to answer questions such as:
You are very right that the problem could be eliminated if the rules are
modified in this way and try to use module in this way seems overkilled
But actually I try doing in this way is mainly for packaging purpose; so
that the rules could be grouped into separated rules files. For examples,