RE: JESS: < strange behavior

2007-01-19 Thread Skeptic 2000
I always do a jess.updateObject(myShadowFact) before the jess.run() call but I'll look again at it. Thanks. > From: [EMAIL PROTECTED]> Subject: Re: JESS: < strange behavior> Date: Fri, 19 > Jan 2007 09:42:21 -0500> To: jess-users@sandia.gov> > > On Jan 19, 2007, at > 12:00 AM, Skeptic 2000

Re: JESS: < strange behavior

2007-01-19 Thread Ernest Friedman-Hill
On Jan 19, 2007, at 12:00 AM, Skeptic 2000 wrote: Hi, I have a rule looking something like : (defrule wcooo ; exemple pour un while (MyShadowfact (OBJECT ?o)) (test (< (str-length (?o methodreturningastring "param")) 3)) => (printout t "rulefired" (str-length (?o methodreturningastring "pa

Re: JESS: using mathematicals functions on a shadow fact

2007-01-19 Thread Ernest Friedman-Hill
On Jan 18, 2007, at 11:15 PM, Skeptic 2000 wrote: Hi, in a LHS i'm getting a value from a shadowfact method and I want to compare that value using > to a fixed number, something like : (test (> (?x domethod "param") 3) I get the error that 3 is not a java object, so I tried to replace 3

JESS: using mathematicals functions on a shadow fact

2007-01-19 Thread Skeptic 2000
Hi, in a LHS i'm getting a value from a shadowfact method and I want to compare that value using > to a fixed number, something like : (test (> (?x domethod "param") 3) I get the error that 3 is not a java object, so I tried to replace 3 with : new Integer 3, but I get the same message. How can

JESS: < strange behavior

2007-01-19 Thread Skeptic 2000
Hi, I have a rule looking something like : (defrule wcooo ; exemple pour un while (MyShadowfact (OBJECT ?o)) (test (< (str-length (?o methodreturningastring "param")) 3)) => (printout t "rulefired" (str-length (?o methodreturningastring "param")) crlf)) And I strangly get the rulefired messa