This one is a simple typo. The line
(assert (productx -ok))
has a space between 'productx' and '-ok'.
JESS interprets this as an ordered fact with name 'productx' and multislot
value
'-ok'. Since it appears that a deftemplate for 'productx' doesn't appear in
your file, and you don't
Title: Rules firing in an endless loop...
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.
Title: Re: JESS: Still a problem when trying to match an object in an object...
More info
Is the rule defined in the engine BEFORE
the defclass?
Richard Long Imagination is more
important than knowledge.
Senior Developer
Gestalt LLC
12605 Challenger, Suite 160, Orlando,