Hello,
I have a problem to combine, in Jess, a value returned by a method on a java fact, and a deffacts fact.
once I have
-------------------------------------------------------------------------------------------------------------------
(deffacts ConnaissanceLing
(typeSavoirApprenant "implicite" " relation spatiale")
(typeSavoirApprenant "implicite" " correspondance chaine ecrite orale") )
-------------------------------------------------------------------------------------------------------------------
and secondly I have a rule such as :
-------------------------------------------------------------------------------------------------------------------
(defrule ruleTest
(uop
(conn ?connUO)
(OBJECT ?o2) )
(typeSavoirApprenant "implicite" "toto") ; this call to a deffacts is ok.
(typeSavoirApprenant "implicite" (get ?connUO objet)) ; <------------- generate a bad slot value !
; (porteSur "texte" (get ?o2 objet))
=>
(printout t " RCO-Priorite-1.05 appliquie" crlf)
)
-------------------------------------------------------------------------------------------------------------------
In this rule, the third instruction call a fact from the deffacts, with a (get ?connUO objet) that returns a String (java.lang.String). and Jess generate a Bad Slot value ...
Is it impossible to use this way ?
Thanks for your help,
Catherine CLEDER
--------------------------------------------------------------------
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]
--------------------------------------------------------------------
- Re: JESS: deffacts with a java method call Catherine CLEDER
