Re: [rules-users] StatelessSession
This is possible. You can loop through the List and add individual objects to the session. How's you List defined? Let me know if you need specific code example. SA From: Wolfgang Laun wolfgang.l...@gmail.com To: Rules Users List rules-users@lists.jboss.org Sent: Friday, April 6, 2012 8:14 AM Subject: Re: [rules-users] StatelessSession Create a java.util.List list containing your objects and call StatelessRuleSession.execute( list ) See the Javadoc of StatelessRuleSession. -W On 06/04/2012, Hassan azbak...@gmail.com wrote: hello everyone actually I'm working with stateless session, I know we can pass a list of objects in the session but I do not know how to pass objects of different types, I do not even know if that's possible. I will be grateful :) - Youssef AZBAKH. -- View this message in context: http://drools.46999.n3.nabble.com/StatelessSession-tp3890043p3890043.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Return List of Fired Rule Name from Decision table
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 From: srinivasasanda srinivasasa...@gmail.com To: rules-users@lists.jboss.org Sent: Thursday, April 5, 2012 8:56 AM Subject: [rules-users] Return List of Fired Rule Name from Decision table Hi, when a rule fires i am storing the rule name in Result field of type list as result.add(drools.getRule().getName()) -- in 'part' of a normal rule. Now i am using decision table,how can i get the rule names fired. I am not able to give java statement in action or in row contain field.Where to write that Java statement in Decison Table?Can you suggest me please. Thanks Srinivasa Sanda -- View this message in context: http://drools.46999.n3.nabble.com/Return-List-of-Fired-Rule-Name-from-Decision-table-tp3887158p3887158.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users