In ACTION, you can use :
- static methods
- non-static method on a previous matched objects
using "addNode(...)" like this is nonsense, even in plain java
If your addNode method applies to your matched Service object (which you binded to
variable "s"), use "s.addNode(...)"
Otherwise, you have to get the object in which this method is defined in order to call it
----- Mail original -----
De: "SuperGG" <jerome-m.petit(a)thalesgroup.com>
À: rules-users(a)lists.jboss.org
Envoyé: Vendredi 11 Mai 2012 14:43:06
Objet: Re: [rules-users] Decision table call external method
http://drools.46999.n3.nabble.com/file/n3979822/Sans_titre.jpg
I have this decision table.
I have a Class XMLTool which contains static fields as SICF and some methods
(non static) as addNodes(String str);
I don't find the way to use the method addNodes in my decision table.
(I import all the good classes)
I tried several stuff but no success.
I'm sure there is one good way to do it.
Thx
--
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.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users