I answer to myself:
if you substitute "get-member" with "get" in myRule1 (see quotation) it
works.



Marco Zappatore wrote:
> 
> 
> Dear JESS users,
> I'm working with shadow facts and my question is the following:
> let's suppose I have 3 java beans
> 1) A (with slot sA)
> 2) B (with slot sB)
> 3) C
> 
> the type for the sA slot is the java bean B itself and the type for the sB
> slot is C.
> 
> First I definstanced C, then I definstanced B. I used the OBJECT slot of
> the
> shadow fact C as content for sB and I retracted C.
> Finally I definstanced A. I filled again the sA slot with the OBJECT slot
> of
> the shadow fact B and I retracted B too.
> Now I have to write a rule that has to verify directly in A whether or not
> C
> is in sB.
>  
> My trials:
> 
> (defrule myRule1 
>  ?f <- (A (sA ?a &: (instanceof (get-member ?a sB) C))
> =>
>  ;do something)
> 
> (defrule myRule2
>  ?f <- (A (sA ?a))
>   (B (OBJECT ?a) (sB ?b &: (instanceof ?b C)))
> =>
>  ;do something)
> 
> didn't work...
> Any idea?
> 
> Many thanks in advance
>   Marco Zappatore
> -- 
> View this message in context:
> http://old.nabble.com/Multiple-shadow-facts-tp26558321p26558321.html
> Sent from the Jess mailing list archive at Nabble.com.
> 
> 
> 
> --------------------------------------------------------------------
> 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].
> --------------------------------------------------------------------
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/JESS%3A-Multiple-shadow-facts-tp26558518p26560670.html
Sent from the Jess mailing list archive at Nabble.com.



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