Dear Jessers,

I am developing a kind of an expert system. If a user has a problem, a
problem fact is asserted. Now I'm looking at a rule to find an expert for my
problem.
In my implementation it is possible that several experts (facts) can match
for the asserted problem.

Right now, the user with the problem receives multiple expert proposal. But
I want the user to get only one by time. Therefore, the rule should only
fire once. I tried to modify the rule with 'exists'-test. Unfortunatly, I
use some slots of the expert fact (e.g. name) on the RHS of the rule. Jess
throws an exception that the bound variable of the expert fact is unknown. I
read something according to this on the Jess book. Is there another way of
achieving this?

Another solution would be to retract the problem fact after the rule found
the first expert. But later on, I want to implement a confirmation that the
contact was established. If the expert is not available the problem fact
should remain in the working memory.

Another question is, after this problem is solved: Is it possible to
randomize the matching expert fact? I don't want the first expert in the
memory to get all of the help calls.

Thanks for your suggestions!

Best regards,

Noel Huebers

Reply via email to