Re: [rules-users] Firing Mulitple packages

2011-11-30 Thread Wolfgang Laun
for( KnowledgePackage kp: kbase.getKnowledgePackages() ){ System.out.println( kp.getName() ); } // -W On 30 November 2011 15:25, srinivasasanda wrote: > Hi Vignesh and Esteban, > > Please help me out in this issue..From your code,I'm trying to display the > packages present in the kbase.But i

Re: [rules-users] Firing Mulitple packages

2011-11-30 Thread srinivasasanda
Hi Vignesh and Esteban, Please help me out in this issue..From your code,I'm trying to display the packages present in the kbase.But it is displaying hashcode instead of Package name.Here is my code KnowledgeBuilder kbuilder1 = KnowledgeBuilderFactory.newKnowledgeBuilder(); Knowl

Re: [rules-users] Firing Mulitple packages

2010-08-17 Thread Vignesh
Hi Esteban, Its working now, actually i had given the wrong package name for my rule flow which i had added from my eclipse package whereas the one in Guvnor was different, which had created the problem/confusion. Thanks a lot for your suggestion. I have another question in this regard, Is it p

Re: [rules-users] Firing Mulitple packages

2010-08-17 Thread Esteban Aliverti
Hi, Using a single kbuilder should also work. Beyond that, I don't see anything wrong in your code. You can check for errors in your kbuilder after the packages were added: if (kbuilder.hasErrors()){ Iterator errors = kbuilder.getErrors().iterator(); while (errors.h

Re: [rules-users] Firing Mulitple packages

2010-08-14 Thread Vignesh
Hi Esteban, I have added the complete package into the kbuilder using the package url, Below is the way Im using to add the package, KnowledgeBuilder kbuilder1 = KnowledgeBuilderFactory.newKnowledgeBuilder(); KnowledgeBuilder kbuilder2 = KnowledgeBuilderFactory.newKnowledgeBuilder(); kbuilder1.a

Re: [rules-users] Firing Mulitple packages

2010-08-13 Thread Esteban Aliverti
Could you post the way you are using to add kassets to kbase? El ago 13, 2010 12:20 p.m., "Vignesh" escribió: Hi Esteban, I have tried the same logic by adding all the packages in my application in to the kbase and executed the same, but only the drl file got loaded in it, other kassets like d

Re: [rules-users] Firing Mulitple packages

2010-08-13 Thread Vignesh
Hi Esteban, I have tried the same logic by adding all the packages in my application in to the kbase and executed the same, but only the drl file got loaded in it, other kassets like dsl, ruleflow present in it were not added to the same. Do we need to add everything separetly? Kindly let me kno

Re: [rules-users] Firing Mulitple packages

2010-08-13 Thread Esteban Aliverti
You can add all the packages into a single kbase, create a ksession from it and fireAllRules(). Is this what you are asking? Best, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Fri, Aug 13, 2010 at 3:3

[rules-users] Firing Mulitple packages

2010-08-12 Thread Vignesh
Hi, We tried with a properties file with url of the set of package names in the applicaiton and by iterating this file and fired the rules with out any issues, but I want to know whether there is any way to fire all the rules in multiple packages present in a Guvnor application using any built-in