If there is just one object of class XMLTool and all addNode() calls should
refer to this single object, you should do what Vincent suggested by making
this single object accessible via a DRL global variable, or by using the
singleton design pattern (as in Java).
Adding this object as a fact and using (by applying tricks) it in the
condition isn't the way this is supposed to be done (as you have rightly
noticed).
-W
--
View this message in context:
http://drools.46999.n3.nabble.com/Decision-table-call-external-method-tp3...
Sent from the Drools: User forum mailing list archive at
Nabble.com.