JESS: Relation between a Java Bean and Jess - retrieving results

2006-01-26 Thread Daniela CLARO
Hi everybody, As I am developing using JESS, I have some doubts. Here is more one... Consider that I have one fact and the two rules below. They are automatically created using Java and Rete. Actually, I used the STORE and a bean because I want to retrieve (FETCH) a list of results. For example,

RE: JESS: Goal in each action

2006-01-26 Thread Daniela CLARO
Hi James, Thank you very much for your deeply answer. I have some comments to add... Actually, I completely agree with you that rule-based systems are a kind of data-driven and forward chaining also. In my example, the planner that I am devellopping, I can have an explicitly goal, but actually

Re: JESS: Goal in each action

2006-01-26 Thread Roger Studner
To jump in.. I suggest that everyone buys that book if they are going to use Jess. It *does* repeat some material available in the online docs and other places, but also includes quite a good bit more code and examples than I found anywhere else. Roger Studner On 1/26/06, Daniela CLARO [EMAIL

RE: JESS: Relation between a Java Bean and Jess - retrieving results

2006-01-26 Thread Daniela CLARO
I am myself answering me because I found the first mistake and it works. But if anybody knows a way more simple to do the same thing, I will be glad to learn it. Here is the right code, it is automatically generate : rete.executeCommand((set-reset-globals

JESS: ExecuteCommand(variable) versus ExecuteCommand(string)

2006-01-26 Thread Daniela CLARO
Hi folks, I am having some problems running my rules in Java using executeCommand. When I run using a variable 'knowledgeBaseRule' that is a StringBuffer rete.executeCommand(knowledgeBaseRule.toString()); I don't receive any answer and it does not call either my bean. When I catch the string