Re: JESS: Still a problem when trying to match an object in anobject...

2002-10-06 Thread ejfried
I think Alexander Lamb wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Well, The problem is that I populate the value from the Java side, using an accessor method. i.e., the value is null when you first definstance the object. This changes everything, because technically,

Re: JESS: Still a problem when trying to match an object in anobject...

2002-10-05 Thread Alexander Lamb
Well, The problem is that I populate the value from the Java side, using an accessor method. Also, I get the following message even before selectedCompleterResponse has a value: Async Error: Jess reported an error in routine get while executing (get ?r keyCode) while executing (eq ASP

Re: JESS: Still a problem when trying to match an object in anobject... Even more info

2002-10-04 Thread Alexander Lamb
Thanks, that did it! Some logging was crashing in my code, now it works! On 3.10.2002 18:43, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think Alexander Lamb wrote: Well, I still crash in the definstance: ERROR IN DEFINSTANCE: Jess reported an error in routine

JESS: Still a problem when trying to match an object in anobject...

2002-10-03 Thread Alexander Lamb
Title: Still a problem when trying to match an object in an object... Hello, Some time ago, I asked about that question (August 30). You replied but I didnt get it to work, so I wrote: I have the following rule: (defrule ASP1 (OrmedContext (readyToRun TRUE) (task script)

Re: JESS: Still a problem when trying to match an object in anobject...

2002-10-03 Thread ejfried
I think Alexander Lamb wrote: (OrmedContext (readyToRun TRUE) (task script) (selectedCompleterResponse ?r :(eq ASP get ?r keyCode)) (OBJECT ?x) ... The problem is that my LHS never evaluates to true Sure -- the call of eq is asking whether the string

Re: JESS: Still a problem when trying to match an object in anobject... More info

2002-10-03 Thread Alexander Lamb
Title: Re: JESS: Still a problem when trying to match an object in an object... More info Some more info on my previous question: The crash happens exactly here: defaultOrmedContext = new OrmedContext(); defaultOrmedContext.setTask(completer); rete =

Re: JESS: Still a problem when trying to match an object in anobject... Even more info

2002-10-03 Thread Alexander Lamb
Title: Re: JESS: Still a problem when trying to match an object in an object... Even more info Well, To find an answer, I tried to simplify the problem. So I wrote: (defrule ASP1 (OrmedContext (readyToRun TRUE) (task script) (selectedCompleterResponse ?r) (OBJECT ?x) ) = (printout t ?r crlf)

Re: JESS: Still a problem when trying to match an object in anobject... More info

2002-10-03 Thread ejfried
I think Alexander Lamb wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] Some more info on my previous question: You need to find out the class of the object in ?r. Change your rule like this: (selectedCompleterResponse ?r:(progn

Re: JESS: Still a problem when trying to match an object in anobject... Even more info

2002-10-03 Thread ejfried
I think Alexander Lamb wrote: Well, I still crash in the definstance: ERROR IN DEFINSTANCE: Jess reported an error in routine DefinstanceList.createFact. Message: Called method threw an exception. at jess.DefinstanceList.createFact(DefinstanceList.java:119) at