JESS: the extends clause in deftempates

2004-08-02 Thread Jason Morris
What ever became of the extends clause in the definition for deftemplates? It is clearly mentioned in the Jess online docs, but I don't see it mentioned at all in JIA. Section 13.4 of the Jess61p7 change history mentions it briefly. I just tried whipping up a sample, and it clearly works in Jess

JESS: Newbie questions

2004-08-02 Thread Mehta, Chirag (IT)
Hi all, I am a newbie to jess and have written this code: (defrule calcifnc (bondMVMax (cusip ?c)) (bondMVMax (mv ?mv)) (bondMVMax (issue_outstanding ?io~nil)) 5. (bind ?noncomp (/ ?mv ?io)) (test ( ?noncomp 10)) = (printout t ?c " is Non Complaint nc = " ?noncomp crlf) ) At line 5, it

Re: JESS: the extends clause in deftempates

2004-08-02 Thread ejfried
I think Jason Morris wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] What ever became of the extends clause in the definition for deftemplates? It is clearly mentioned in the Jess online docs, but I don't see it mentioned at all in JIA. Section 13.4 of the Jess61p7 change history

Re: JESS: Newbie questions

2004-08-02 Thread ejfried
I think Mehta, Chirag (IT) wrote: I cannot seem to figure out what is wrong! The things on the left-hand-side of a rule are always conditional elements (patterns or groups of patterns), not function calls. Jess is trying to interpret (bind ?noncomp (/ ?mv ?io)) as a pattern that matches bind

Re: JESS: FYI - using trees in Jess code

2004-08-02 Thread ejfried
I think Jason Morris wrote: In fact, by using Swing's trees from my Jess code, I could attach a user object to each DefaultMutableTreeNode and manipulate it via getUserObject()/setUserObject(). In my case, the user object becomes a Jess fact reference (or anything else I want to stick in

RE: JESS: Newbie questions

2004-08-02 Thread Mehta, Chirag (IT)
Thanks a million. Any suggestions on my second question? I need to save all the details for each fact which passes the test into a data structure. This I need to pass back to my java code, which in turn can save the results to a db. What would be the best way of doing this? Chirag

Re: JESS: jdk 1.5 support?

2004-08-02 Thread ejfried
I think Ahmed Mohombe wrote: I really hadn't given it any thought. What features do you suppose could use specific support in Jess? Enumerations seem to be the most obvious to me. The generics stuff is nice too, but that would be more complicated (I suppose :) ). If you have a chance,

Re: JESS: Newbie questions

2004-08-02 Thread ejfried
I think Mehta, Chirag (IT) wrote: Thanks a million. Any suggestions on my second question? If you scroll down to the very bottom of this message, you'll see in the quoted part that I answered that one too. I need to save all the details for each fact which passes the test into a data

RE: JESS: Newbie questions

2004-08-02 Thread Mehta, Chirag (IT)
Thank you ever so much. One more quick question. In my rule I have calculated the following: (/ ?mv ?io) Is there anyway to save this along with the Fact reference in ?b ?? Thanks Chirag -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL

Re: JESS: Newbie questions

2004-08-02 Thread ejfried
I think Mehta, Chirag (IT) wrote: Thank you ever so much. One more quick question. In my rule I have calculated the following: (/ ?mv ?io) Is there anyway to save this along with the Fact reference in ?b ?? Sure -- the same way you might do it in Java, by using a little class to

JESS: new to jess

2004-08-02 Thread nirajkumar motwani
Hi All, I am new to using jess and was having some problems when i wrote a small java code... when i do the following (below is part of the code), i donot get any fired rules, why is that: ... engine.executeCommand((watch rules)); String rule3 =(defrule euality-rule (test (eq 1 1)) = );