I think Chuck Davis wrote:
>  
> 
> executing within a STATELESS_SESSION_TYPE session causes the do-it rule, but
> not the do-stuff rule, to fire.  Yet, when run as a JESS batch file, both
> these rules fire.
> 


I added "watch all" to the end of your rules file and ran it as a
stateless session; I got

 ==> Focus MAIN
 ==> f-0 (MAIN::initial-fact)
==> Activation: MAIN::do-startup :  f-0
 ==> Focus MAIN
 ==> f-0 (MAIN::initial-fact)
==> Activation: MAIN::do-startup :  f-0
FIRE 1 MAIN::do-startup f-0
 ==> f-1 (MAIN::example.AClass (class
<External-Address:java.lang.Class>) (field1 nil) (OBJECT
<External-Address:example.AClass>))
==> Activation: stuff::do-stuff :  f-1
 <== Focus MAIN
 ==> Focus stuff
 ==> f-2 (MAIN::doit)
==> Activation: stuff::do-it :  f-2
FIRE 2 stuff::do-it f-2
 ==> f-3 (MAIN::example.AClass (class
<External-Address:java.lang.Class>) (field1 nil) (OBJECT
<External-Address:example.AClass>))
==> Activation: stuff::do-stuff :  f-3
<== Activation: stuff::do-stuff :  f-3
 <=> f-3 (MAIN::example.AClass (class
<External-Address:java.lang.Class>) (field1 "doit") (OBJECT
<External-Address:example.AClass>))
FIRE 3 stuff::do-stuff f-1
 <=> f-1 (MAIN::example.AClass (class
<External-Address:java.lang.Class>) (field1 "success") (OBJECT
<External-Address:example.AClass>))
 <== Focus stuff
 ==> Focus MAIN
 <== Focus MAIN


All three rules seem to fire and do what they're supposed to.

How did you determine that some but not all of the rules had fired?



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

--------------------------------------------------------------------
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