Let's say that I have an class A.
A supports a method called getVectorBasedOnSomeConditions(int i). This
method returns a Vector.
I have an object of class A. Let's call this object a1. I have somehow
asserted this object into the context of my Rete Engine.
Here is what the rule file looks like:
(defclass aclass A)
(defrule somerule
?a <- (aclass (OBJECT ?o))
(test (> (call (call ?o getVectorBasedOnSomeConditions 5) size) 0))
=>
(printout .....)
)
QUESTION: In the THEN of the rule, I want to be able to somehow access the
Vector that was returned by (call ?o getVectorBasedOnSomeConditions 5) in
the IF part of the rule. JESS must be storing this intermediate value
somewhere, because it runs the size function on it. How can I get this value
on the THEN side?
Thanks and regards
Lokesh
---------------------------------------------------------------------
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]
---------------------------------------------------------------------