|
If OrmedContext
is a bound bean, then when you execute the function (call ?c
setSelectedScript ?s) it will fire a property change,
and so the shadow fact will be updated. This makes the rule eligible to fire
again, thus causing an infinite loop.� It looks like you have the slot (readyToRun <bool>)
specifically to toggle eligibility of the fact to trigger a rule.� Therefore, you should add another line to the
RHS: (call ?c setReadyToRun FALSE) Richard Long�������� "Imagination is more
important than knowledge." Senior Developer Gestalt LLC 12605 Challenger, Suite 160, 321.235.8254 - Office 407.491.8628 - Cell Value beyond
the sum of the parts! -----Original Message----- Although I only have 5 rules, I get into a strange loop. �
undefinstance the previous one if it is not null �
assign the ormedContext property to it �
definstance the new selectedScript �
fire property change for the selectedScript in
OrmedContext
|
Title: Rules firing in an endless loop...
- JESS: run-until-halt and salience Scott Gallant
- Re: JESS: run-until-halt and salience ejfried
- Re: JESS: run-until-halt and salience ejfried
- RE: JESS: run-until-halt and salience Scott Gallant
- RE: JESS: run-until-halt and salience Scott Gallant
- Re: JESS: Rules firing in an endless loop... ejfried
- Re: JESS: Rules firing in an endless loop... Alexander Lamb
- Richard F Long
