I think lai wrote: > hello > > I intend to tell my problem clearly. > > My question is how to pass value of ?i and ?slot in rule (matching-similar-case) > to ?i and ?slot in rule(idea-combination). > The purpose is to retrieve the value of concept slot in rule(idea-combination) by > matching content of issue slot and solution slot in different cases. >
I'm not sure you have a correct understanding of how Jess works or what it does; unfortunately, I still don't understand what you're saying well enough to have a good mental model of what your current understanding actually is. Forgive me if I'm underestimating you. In any case, the way Jess works is that you write the rules, and it's up to Jess to apply them to the data as appropriate. If two different rules match a given set of facts, then they both will fire; for the two rules you've shown here, this would happen often. There's no concept of "passing values" from one rule to another, other than via the contents of working memory. If you need to write a chunk of code that you can invoke from several places like a function call, then use a deffunction, not a rule. --------------------------------------------------------- Ernest Friedman-Hill Science and Engineering PSEs Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov -------------------------------------------------------------------- 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] --------------------------------------------------------------------
