Tutorial - Setting generic object properties SourceForge.net Logo
 Home
 Documentation
 To do
 Download
 Project page
 JSR-94

How to use the rule engine to get/set properties of generic objects

JRuleEngine can be used to set/get properties of generic object instances. These instances are added to the rule engine.
Generic objects are identified by object.getClass().getName(): this means that it's not allowed more instances of the same class, because each object is identified by its class name, so only one object per class is allowed.
"If conditions" and "then actions" can reference generic objects and use them to evaluate or set some properties.
Notice that using generic object is less poweful technique to adding objects to the rule engine: it's better to use RuleEngineObjects or Swing Components.


(c) 2006 by Mauro Carniel