Hi all, I have a Java program that is using Jess for reasoning. My program has some rules defined which gets loaded into Jess upon start up of the system. There are some more complicated rules involoving lists. I am more comfortable writing these rules in Java and invoke them from my program for inclusion into Jess rule set. Here are my questions:
1) If I write each of these rules as a Java method, how I can call them so that they can be treated as a defrule command in Jess for inclusion into Jess rule set? 2) Assuming one of these rules is a list membership. Given a list and an item, checking to see if that item is a member of the list. How would this rule get invoked by Jess given a Jess triple such as: (membership ?item ?list)? I do not see the overall picture yet. If my Java function is taking a Collection and say an Object to check whether this Object is a member of that Collection, how do Jess variable get mapped to a Collection or an Object? Thank you very much for your help in advance. Regards, Payam. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -------------------------------------------------------------------- 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] --------------------------------------------------------------------
