Forgive me if I've missed something obvious but:
I cannot see a way of 'Definstancing' from within a Userfunction --
the Definstance functionality within Jess seems private. Is this by
design, or am I just mssing something very obvious? As it is now I
simply assert a fact 'foo(OBJECT ?obj)' from my user function ( where
?obj is the address of my Bean created within my user function) and then
I have a rule within Jess along the lines of :
(defrule defitup
?f<-(foo (OBJECT ?obj))
=>
(definstance <?class-name> ?obj dynamic)
(retract ?f) ;; don't need it any more
)
which although it works fine seems to be laborious at best. BTW I'm
using Jess 5.1 (still intending to move to Jess 6 at some point!)
Thanks to anyone who can shed light on this
Alanl
---------------------------------------------------------------------
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]
---------------------------------------------------------------------