Hi all,

I`ve a problem to call a java method from jess.

i use the following rule in jess:

(defrule store-known-adjacents
     ?loc <- (adjacent (locale1 ?l) (locale2 ?l2))
     =>
     (call ?*my-module* storeAdjacent ?loc)
)

the problem is that i need the Adjacent object (adjacent (locale1 ?l)
(locale2 ?l2))
as an object and not as a fact....

The ?loc is a fact ... but i need the whole object .... something like
this....

(defrule store-known-adjacents
    (bind ?loc (adjacent (locale1 ?l) (locale2 ?l2)))
     =>
    (call ?*my-module* storeAdjacent ?loc)
)


I need the exact same object and not a new Adjacent object... anybody an
idea ?? Can i get in jave the object from the fact??

Thanks,

Sander

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