JESS: jess listener question

2003-05-30 Thread abramson
Hi! That's my first question to this list. How do I get the values of an ordered fact in a JessListener? I would like for example to capture the warnings issued in the pumps example and make a message out of the multislot values. -- myriam -

Re: JESS: jess listener question

2003-05-30 Thread ejfried
I think [EMAIL PROTECTED] wrote: > > Hi! > > How do I get the values of an ordered fact in a JessListener? > > I would like for example to capture the warnings issued in the pumps > example and make a message out of the multislot values. JessEvent.getObject() will return a jess.Fact object for

JESS: more effecient jess debuging

2003-05-30 Thread Ryan Crumley
Title: more effecient jess debuging I have recently inherited a bit of code that is pretty complex. So far watch-all has not been able to help me find the problems I am tracking down. Can anyone suggest other debug methods for jess rulesets? watch-all will tell me what rules fire, but more

RE: JESS: more effecient jess debuging

2003-05-30 Thread Alan Moore
Try the (view) command as explained in the users manual. Good luck! alan -Original Message- From: Ryan Crumley [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 4:30 PM To: [EMAIL PROTECTED] Subject: JESS: more effecient jess debuging I have recently inherited a bit of code that

Re: JESS: more effecient jess debuging

2003-05-30 Thread Mike Smith
Try "(matches )" to help find what did and didn't match. Ryan Crumley wrote: I have recently inherited a bit of code that is pretty complex. So far watch-all has not been able to help me find the problems I am tracking down. Can anyone suggest other debug methods for jess rulesets? watch-all w

Re: JESS: more effecient jess debuging

2003-05-30 Thread ejfried
I think Ryan Crumley wrote: > I have recently inherited a bit of code that is pretty > complex. So far watch-all has not been able to help me find the problems I am > tracking down. Can anyone suggest other debug methods for jess rulesets? > Besides the other excellent suggestions we've seen

RE: JESS: more effecient jess debuging

2003-05-30 Thread James Owen
Title: more effecient jess debuging Question:  Will jdb or some of the other shareware (freeware) debugging tools work with Jess.  I haven’t tried them yet but I know that there are some that will work with other rulebased systems out there.  Just wondered if anyone else had tried any of t

RE: JESS: more effecient jess debuging

2003-05-30 Thread James Owen
Excellent! As usual, Ernest cuts to the heart of the matter. GIGO means just that. :-) Dr. Albert Einstein once said something to the effect that if you can't explain your theory to a five-year-old then your explanation is too complicated or you don't understand it yourself. Another :-) Whenev

Re: JESS: more effecient jess debuging

2003-05-30 Thread ejfried
I think James Owen wrote: > Question: Will jdb or some of the other shareware (freeware) debugging > tools work with Jess. I haven't tried them yet but I know that there > are some that will work with other rulebased systems out there. Just > wondered if anyone else had tried any of these. >

RE: JESS: more effecient jess debuging (long)

2003-05-30 Thread Alan Moore
You can certainly debug Jess under any Java debugger, but obviously you're going to be debugging at a low level. Our friend Alan Moore was workign on a Jess debugger at one point; not sure what happened to that project, Alan? [alan] I have written several versions of this. The coolest one was ful

RE: JESS: more effecient jess debuging

2003-05-30 Thread Alan Moore
Also, for simple "stop when this statement is reached" kinds of debugging, I have resorted to creating a userfunction called, not surprisingly, (breakpoint). In this userfunction, I set a breakpoint in the java call() method and anywhere it is encountered in the jess script, it stops in my java de

RE: JESS: more effecient jess debuging

2003-05-30 Thread Alan Moore
All java based debuggers work with java only. So that means that you can debug the jess engine itself (obviously) but not jess script/code. There are new features of the java jvm/debugging api's/class file format that allow non-java languages that compile down into java to be debugged at the sourc