Rules can only pattern-match on Bean-like methods - i.e., getX(),
getY(), and can only respond to attribute changes if the class
provides support for PropertyChangeListeners. But Jess code can call
any Java method and access any Java memeber variable -- read manual
section 2.6 and the entries in the function list for new, call,
get-member, set-member, import, etc.


I think Adarsh Jain wrote:
> Hi,
> I am new to rule based programming and have some issues using Jess.
> 
> I have a Java object - not a java bean but has get and set methods for
> attributes in addition to other public methods.
> When I invoke Jess, I would like the rule to work on this object and be able
> to invoke its methods (object's methods) other than the get and set methods
> in the rule. I am not sure how to do it. Any help will be appreciated.
> 
> Thanks,
> Adarsh
> 
> 
> 



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