JESS: how to dumping rules ?

2009-09-02 Thread jo
Hi I tried to dump the rules loaded at some point in time as follows but it did not work out... I do not know the names beforehand and have to figure out why they are not firing... Jess (rules) For a total of 0 rules in module MAIN. Jess (defrule x (f $? )=) TRUE Jess (rules) MAIN::x For a

Re: JESS: how to dumping rules ?

2009-09-02 Thread Wolfgang Laun
(rules) just prints, returning nil. (foreach ?v (explode$ (ppdefrule *)) (ppdefrule ?v)) -W On Wed, Sep 2, 2009 at 11:25 AM, jo etaoi...@yahoo.com wrote: Hi I tried to dump the rules loaded at some point in time as follows but it did not work out... I do not know the names beforehand and

Re: JESS: how to dumping rules ?

2009-09-02 Thread Ernest Friedman-Hill
On Sep 2, 2009, at 5:25 AM, jo wrote: Hi I tried to dump the rules loaded at some point in time as follows but it did not work out... I do not know the names beforehand and have to figure out why they are not firing... That's what (ppdefrule *) does.

Re: JESS: how to dumping rules ?

2009-09-02 Thread jo
@sandia.gov Sent: Wednesday, September 2, 2009 1:55:47 PM Subject: Re: JESS: how to dumping rules ? (rules) just prints, returning nil. (foreach ?v (explode$ (ppdefrule *)) (ppdefrule ?v)) -W On Wed, Sep 2, 2009 at 11:25 AM, jo etaoi...@yahoo.com wrote: Hi I tried to dump the rules loaded

Re: JESS: how to dumping rules ?

2009-09-02 Thread Wolfgang Laun
On Wed, Sep 2, 2009 at 1:55 PM, Wolfgang Laun wolfgang.l...@gmail.comwrote: (rules) just prints, returning nil. This is correct. (foreach ?v (explode$ (ppdefrule *)) (ppdefrule ?v)) This is nonsense, -W

Re: JESS: how to dumping rules ?

2009-09-02 Thread Florian Fischer
Maybe that is what you want? (bind ?it ((engine) listDefrules)) (while (?it hasNext) (printout t (ppdefrule ((?it next) getName)) crlf crlf) ) Regards, Florian On Wed, Sep 2, 2009 at 11:25 AM, jo etaoi...@yahoo.com mailto:etaoi...@yahoo.com wrote: Hi I tried to dump the rules

Re: JESS: how to dumping rules ?

2009-09-02 Thread jo
Cool, works like a charm... Thanks Joe - Original Message From: Florian Fischer florian.fisc...@sim.hcuge.ch To: jess-users@sandia.gov Sent: Wednesday, September 2, 2009 3:56:32 PM Subject: Re: JESS: how to dumping rules ? Maybe that is what you want? (bind ?it ((engine