Hi ,

I need to call the functions of class in the body  and head of the rule.

It gives me not bound error.

 

 (defrule abc

(test (bind ?vt (new java.util.Hashtable)))

(test (call ?vt  put “key” “value”))

=> (call ?vt get "key"))

 

can you tell me how to use call function in the head and body  part of the rule ?

and how to invoke the methods of the class attached to a  bound a variable?

 

if this does not work , can i just call  the methods of the static class which need not be

instantiated and call methods like

(test (call staticClass.MethodName))

in the body of a rule.

Regards,

Mahesh G. 

 



Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax

Reply via email to