Hi, all,

Now I'm using JESS. I have a question, and I'll show it with an example. Here
are two rules:

Rule 1: e1 ^ e2 => printout e1 and e2 happened

Rule 2: e3 => printout e3 happend

when e3 comes, I do the following: 1.(assert e3) 2. (run) rule 2 is fired, and
e3 is only for rule 2, and I can retract it using (retract e3) after (run).

While for e1 and e2 things are different.

when e1 comes, no rules are fired, but their is a partial match of rule 1. I
need to store e1 until e2 comes. My question is " how could I find when a fact
triggers part of a rule?" and " can I retract a fact according to its content,
e.g. the slot value?"


Thanks a lot!

sincerely yours,

Li

Reply via email to