Re: Inserting rules dynamically into camel-drools component

2012-05-03 Thread soumya_sd
surya wrote > > > By 'expensive' i mean for creating knowledgesession at runtime it depends > on various factors like: > > 1. rules reside on local file system vs on remote repository like guvnor > 2. compilation time for the rules. > 3. use case at hand and etc... > > In our case, the rule

Re: Inserting rules dynamically into camel-drools component

2012-05-03 Thread surya
You are welcome, that was just my 2 cents..let us know if you find any other better alternatives. By 'expensive' i mean for creating knowledgesession at runtime it depends on various factors like: 1. rules reside on local file system vs on remote repository like guvnor 2. compilation time for th

Re: Inserting rules dynamically into camel-drools component

2012-05-03 Thread soumya_sd
Surya, Thank you for responding. Looks like you have a good deal of experience with drools and camel. What I'm trying to do is apply rule-based filtering to objects. However, these rules are defined at runtime by the users. For example, the user may say "Give me all places that serve _Italian_

Re: Inserting rules dynamically into camel-drools component

2012-05-03 Thread surya
An alternate option that i know is to use "RuleNameMatchesAgendaFilter" in drools, by which you can selectively fire the rules with matching rule name. Typically to add/remove new rules at runtime requires to create a new KnowledgeSession which might be little expensive. For integration with Came

Re: Inserting rules dynamically into camel-drools component

2012-05-02 Thread Claus Ibsen
On Thu, May 3, 2012 at 1:34 AM, soumya_sd wrote: > Is there a way to inserting (and removing) rules at runtime using the > Drools-Camel component ? According to these two you can only insert facts. > > https://issues.jboss.org/browse/JBRULES-2804 > > https://github.com/droolsjbpm/droolsjbpm-integr