nirajkumar motwani wrote:
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 (te
Hi Nirajkumar,
As the saying goes, "...you can't get there from here."
First, you'd be better off learning Jess from its command line scripting
environment, then move to programming the API when you have the basics
mastered.
In your example, you have a few things incorrect:
1. You need to use th
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)) => )";
engin
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
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 PROTE
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 da
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
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
-Orig
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
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 "bi
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 his
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,
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
13 matches
Mail list logo