I think Rajaram Subramanian wrote:
> Hi,
> haha..comeon, man! Of course, i ran the engine. Sorry for not showing
> that in the code. But wait, i ran the engine ABOVE the shown snippet of
> code. After doing the (batch) command. Is it ok or should i run it AFTER
> the asserting. I am assuming it is not necessary. 

As I said, rules only fire while the engine is running. The engine is
only running during a call to run() . run() returns when there are no
more rules to fire.


> Pls let me know,
> Thank you,
> Raj.
> 
> On Wed, 20 Feb 2002 [EMAIL PROTECTED] wrote:
> 
> > 
> > I don't see where you've called "(run)" or run() anywhere -- rules
> > only fire while the engine is running.
> > 
> > 
> > I think Rajaram Subramanian wrote: 
> > > Hi,
> > > In my java prgm, i do the following...
> > >   ...
> > >   rete_.executeCommand("(assert (testing-fact) )");
> > >         Context env=rete_.getGlobalContext();
> > >         Value val=env.getVariable("*helpText*");
> > >   System.out.println(" helptxt is.."+val.stringValue(env));
> > >   ...
> > > And my .clp file goes thus:
> > >   (defglobal ?*helpText* = (new java.lang.String "Hullo Text
> > > message"))
> > >   (defrule test-rule
> > > ;For testing purpose only
> > >    (testing-fact)
> > >     =>
> > >    (bind ?*helpText* " ok a diff message"))
> > > 
> > > How is it that in my java pgm, *helptxt* always shows "Hullo Text
> > > message", rather than " ok a diff message".
> > > 
> > > Pls let me know if you can see where my mistake is,
> > > 
> > > thank you,
> > > raj.
> > > 
> > > 
> > > --------------------------------------------------------------------
> > > To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> > > in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> > > (use your own address!) List problems? Notify [EMAIL PROTECTED]
> > > --------------------------------------------------------------------
> > > 
> > 
> > 
> > 
> > ---------------------------------------------------------
> > Ernest Friedman-Hill  
> > Distributed Systems Research        Phone: (925) 294-2154
> > Sandia National Labs                FAX:   (925) 294-2234
> > Org. 8920, MS 9012                  [EMAIL PROTECTED]
> > PO Box 969                  http://herzberg.ca.sandia.gov
> > Livermore, CA 94550
> > 
> > --------------------------------------------------------------------
> > To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> > in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> > (use your own address!) List problems? Notify [EMAIL PROTECTED]
> > --------------------------------------------------------------------
> > 
> > 
> 
> 
> --------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the list
> (use your own address!) List problems? Notify [EMAIL PROTECTED]
> --------------------------------------------------------------------
> 



---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to