Title: CARTE DE VISITE
You should use an AgendaListener instead of polluting your rules
with such things.
see there :
http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-expert-docs/html_single/index.html#d0e2003
Le 09/04/2012 03:21, s a a écrit :
I have resolved this problem using the following
approach
Create a Class with a method (say)
PrintRuleName(KContext
kcontext) { System.out.println(kcontext.getRuleName());}
In the decision table in the action Create an Instance of
this class and call this method by passing kcontext. Action
would look like
( Action for each row in decision table will have this)
PrintClass ThePrintClass = new PrintClass();
ThePrintClass.setPrintRuleName(kcontext);
SA
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Vincent
LEGENDRE
Consultant
Sénior
EURODECISION
9A
rue de la Porte de Buc 78000 VERSAILLES
Tél. : +33 (0)1 39 07 12 40
Direct : +33 (0)1 39 07 26 16
www.eurodecision.com
|
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users