In Jess 6: technically, ?a is a jess.Value of type RU.FACT; but
practically, it's like a RU.EXTERNAL_ADDRESS holding a jess.Fact. Make
your method accept a jess.Fact, and it will be called successfully.

In Jess 5, there's no easy way to do this -- no way I can think of,
actually. This is one reason why things were changed for Jess 6!


I think [EMAIL PROTECTED] wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hi!
> I'd like to manipulate a FactId Object with an external Object of a rete 
> engin.
> Can someone tell me the best way to do it?
> Here is an exemple of the code
> ...
> (defrule foo-bar
> ?a <- (foo bar)
> =>
> (bind ?Obj (fetch ?OBJ))
> (call ?Obj ?a))  ;<--------(?a: FactId)
> 
> ...
> and somewhere in my java code 
> ...
> public void fooBar(??? factId){
> ...
> }
> ...
> 
> Thanks!
> Alain
> 
> --------------------------------------------------------------------
> 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]
> --------------------------------------------------------------------
> 



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

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