JESS: defrule for multisot

2006-01-18 Thread Emmanuel Shyllon
Hi,   Given the following:     Rete engine = new Rete ();     Deftemplate d =     new Deftemplate("Aus-Address", "A Aus-Address", engine);     d.addSlot("state-territ-name", Funcall.NIL, "STRING");    

Re: JESS: defrule for multisot

2006-01-18 Thread ejfried
I think Emmanuel Shyllon wrote: > Hi, > > > > Given the following: > > > > > > Rete engine = new Rete (); > Deftemplate d = > new Deftemplate("Aus-Address", "A Aus-Address", > engine); > d.addSlot("state-territ-name

JESS: Implementation Question

2006-01-18 Thread Krasnigor, Scott L (N-AST)
Title: Implementation Question We are in the process of evaluating the use of Jess within our application. One of our requirements is to be able to handle failover. We will be using a Master/Slave configuration where the slave is a replica of the master running in the background. If the maste

JESS: ppdefrule doesn't make sense - is this a Jess 6.1 bug?

2006-01-18 Thread Hector Urroz
Hello,   Jess version = 6.1 For the rule... (defrule MAIN::clear-need-answer "Clear need-answer if question has been answered"  ;; If we need an answer ... ?r <- (MAIN::need-answer (ident ?id))  ;; ... but already have the answer (MAIN::answer (ident ?id))  =>  ;; Print info (printout t "Retracting

Re: JESS: ppdefrule doesn't make sense - is this a Jess 6.1 bug?

2006-01-18 Thread ejfried
I think Hector Urroz wrote: > > Jess> (ppdefrule MAIN::clear-need-answer) > "(defrule MAIN::clear-need-answer >\"Clear need-answer if question has been answered\" >?r <- (MAIN::need-answer (ident ?id)) >(not (MAIN::answer (ident ?id))) >(MAIN::answer (ident ?id)) >=> >(prin

Re: JESS: ppdefrule doesn't make sense - is this a Jess 6.1 bug?

2006-01-18 Thread Hector Urroz
Thanks for the response. It does seem a bit odd to automatically and silently modify code. Why not throw an exception? Is this done elsewhere in Jess? What is the rationale? Did I stumble onto a "reserved" rule name? Thanks again, Hector On 1/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >

Re: JESS: Checking for null/nil on the RHS

2006-01-18 Thread erich.oliphant
Hmm, Am i doing something wrong here then, I have this code on the RHS: -- (bind ?effRate (ognl-get ?pdLocation "getEffectivePerDiemRate(#date)" "date" ?pddate)) (if (eq ?effRate nil) then ;;(dts-log-error "No effective rate found for " (call com.ngc.dts.util.DateUtils formatDateTime ?pdda

Re: JESS: Checking for null/nil on the RHS

2006-01-18 Thread ejfried
I think erich.oliphant wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > (if (eq ?effRate nil) then > ;;(dts-log-error "No effective rate found for " (call > com.ngc.dts.util.DateUtils formatDateTime ?pddate)) > return ) That "return" is just the symbol "return",