[rules-users] Test Scenario

2011-04-19 Thread Boban Abraham
Hello, Please share some documentation to create test scenarios in drools guvnor. How to initialize the java objects, on which the test scenarios have to be executed? Do drools allow rule testing where the input is nested objects? Thanks, Boban -- View this message in context: http://drools.4

[rules-users] Encrypt password in repository.xml

2011-04-19 Thread Boban Abraham
We use mysql to store the data, hence mysql db credentials are mentioned in repository.xml The DB user password in repository.xml is not encrypted currently. What are the options available to place encrypted password in repository.xml? -- View this message in context: http://drools.46999.n3.nab

[rules-users] First Order Logic - METHODS in Drools

2011-04-19 Thread Arjun Dhar
According to First order Logic, (from a rule perspective), one can represent their statements using: PREDICATES, METHODS, CONNECTORS (including existential quantifiers) ..while PREDICATES can be synonymous with Object and Object expressions; the only way of using methods has been via "eval" (AFAI

Re: [rules-users] Sequential mode and partial propagations

2011-04-19 Thread Mark Proctor
On 19/04/2011 18:58, Vincent LEGENDRE wrote: Hi All First : sorry for the misplaced reply to another thread This post is to continue an interresting (to me) discussion started there : https://issues.jboss.org/browse/JBRULES-46 This was about my remark about a backward-chaining mode that could

[rules-users] Sequential mode and partial propagations

2011-04-19 Thread Vincent LEGENDRE
Hi All First : sorry for the misplaced reply to another thread This post is to continue an interresting (to me) discussion started there : https://issues.jboss.org/browse/JBRULES-46 This was about my remark about a backward-chaining mode that could be used to allow sequential mode to handle

Re: [rules-users] Drools-Guvnor ­ question about build and deploy packages

2011-04-19 Thread Vincent LEGENDRE
I don't think that having one binary package per rule will solve your problem, as you will build you KB by merging some packages, and will then fall into exactly the same "compilation" time (to merge common nodes and build the merged RETE for your packages). Note than this problem is exactly th

[rules-users] Sequential mode and partial propagations

2011-04-19 Thread Vincent LEGENDRE
Hi All This post is to continue an interresting (to me) discussion started there : https://issues.jboss.org/browse/JBRULES-46 This was about my remark about a backward-chaining mode that could be used to allow sequential mode to handle some kind of RETE updates (first rules could then trigge

Re: [rules-users] Fw: Some Querries on Drools

2011-04-19 Thread Wolfgang Laun
100K concurrent threads tends to be a problem, with or without Drools. There are several strategies for limiting this, but this is not a Drools topic. Hint 1: You can limit connects on sockets. Hint 2: Java thread pool, a design pattern. -W On 19 April 2011 18:13, Sumeet Karawal wrote: > > >

Re: [rules-users] Dynamic updates of stateful sessions

2011-04-19 Thread Wolfgang Laun
I have recently looked into Knowledge Agent and I don't think that this will update the Knowledge Base of an existing Stateful Knowledge Session. For a Stateful KS you do a kAgent.getKnowledgeBase() to get the new KBase and start a new KS from it. For a Stateless KS that has been created with kAg

Re: [rules-users] How to use for loop in drools!!!!

2011-04-19 Thread rouvas
Sumeet Karawal wrote: > Thanks Esteban!!. I got you point. But how to make the rule to run > according to a condition, in a loop. > > Also, how can we trigger the firing of one rule from another rule. Like > when the Condition part of a rule satisfies then, in the Action part a > particular rule is

Re: [rules-users] Drools-Guvnor ­ question about build and deploy packages

2011-04-19 Thread Patricia Bogoevici
Thanks David for your reply. To clarify: the performance problem is specifically related to the build package. This task takes longer as the package has more and more rules. The build package process is complex, and performs also rule validation. That's why I asked if there is a way to increment

Re: [rules-users] How to use for loop in drools!!!!

2011-04-19 Thread Tihomir Surdilovic
Sorry about the name typo in my previous reply Sumeet. On 4/19/11 12:14 PM, Tihomir Surdilovic wrote: > Hi Samarat, as Esteban suggested, please read the documentation as for > example your question is answered there very early on in chapter "2.2.1. > Methods versus Rules". > > Tihomir > > On 4/19

Re: [rules-users] How to use for loop in drools!!!!

2011-04-19 Thread Tihomir Surdilovic
Hi Samarat, as Esteban suggested, please read the documentation as for example your question is answered there very early on in chapter "2.2.1. Methods versus Rules". Tihomir On 4/19/11 12:06 PM, Sumeet Karawal wrote: > Thanks Esteban!!. I got you point. But how to make the rule to run > accord

Re: [rules-users] Fw: Some Querries on Drools

2011-04-19 Thread Sumeet Karawal
Thanks a lot Randhish!!! Stateful sessions will have to be disposed. But what if the sessions are taking too long, same with the case of stateless sessions, then what to do in that case. Also in the multi- threaded environment, if I have 10 - 100 Ks of threads, will the rule engines performance

Re: [rules-users] How to use for loop in drools!!!!

2011-04-19 Thread Sumeet Karawal
Thanks Esteban!!. I got you point. But how to make the rule to run according to a condition, in a loop. Also, how can we trigger the firing of one rule from another rule. Like when the Condition part of a rule satisfies then, in the Action part a particular rule is triggered and after that the con

Re: [rules-users] Drools-Guvnor ­ question about build and deploy packages

2011-04-19 Thread David Faulkner
Patricia, My understanding (which is certainly open to being corrected) is that in general there is no way to do an incremental compilation of rules. The entire package is analyzed together and significant optimizations are performed to combine common items between rules (which is one of the bi

[rules-users] Drools-Guvnor – question about build and deploy packages

2011-04-19 Thread Patricia Bogoevici
I am using Drools-Guvnor 5.1 release in an enterprise application. The rules created are separated per packages, and for each package there is a snapshot package called LATEST. The KnowledgeAgent polls the snapshot packages to get the latest data and load into the rule engine. Whenever there is a

Re: [rules-users] Fw: Some Querries on Drools

2011-04-19 Thread Randhish Raghavan
Hi, I am quite new to drools but I will try to answer your questions. I don't think Drools will cause your application to crash if you ensure 1. You develop rules that will not result in infinite loops. 2. Dispose sessions if you are using Stateful sessions. Basically, you would want to create t

Re: [rules-users] How to use for loop in drools!!!!

2011-04-19 Thread Esteban Aliverti
Drools is an inference engine and it let you express your knowledge using rules. A rule has 2 parts: CONDITION par and ACTION part. The CONDITION part is expressed in a drools' proprietary syntax, but in the ACTION part you can use plain java code. What you have described looks like an action that

Re: [rules-users] Dynamic updates of stateful sessions

2011-04-19 Thread Esteban Aliverti
There is no need to update your kbase in the listener. The agent will apply all the changes to the provided kbase. If you already have a stateful ksession from that kbase, then the changes in the kbase should be reflected immediately. Could you please post the log output of the kagent? Best Regard

[rules-users] Trying to compare int and String objects

2011-04-19 Thread Manuel Ortiz
Hello everybody: I'm trying to write rules in which fact int attributes and fact String attributes should be compared in condition elements. When I compare them, let's say from int to String, rule when Fact1($intAttr : attrInt1) Fact2(attrString == $intAttr) the rule seems to beh

[rules-users] Problem in compiling each rule separately

2011-04-19 Thread saurabh maheshwari
Hi sir , I have 10 rules . rules are created dynamically .Now if any of them is causing problem so none of them runs so I want to compile each rule separately , so that i can create knowledge base with rules which have no errors but can i do this ? I am not finding the way how i can do it . is

Re: [rules-users] how to get a list of incomplete workitems after e.g server/process crash?

2011-04-19 Thread gs76pl
i tried to load the session from a store like below and then query it for work items/nodes but it doesn't give me an access to e.g. workItem parameters as this value is empty. Is there any API that would provide this information or should i somehow duplicate drools flow and try to use NodeListener

[rules-users] Fw: Some Querries on Drools

2011-04-19 Thread Sumeet Karawal
Hi Everybody, I had posted this earlier. It would be very greatful if anybody could help me on these queries, any suggestions or any document that I can refer to. Thanks and Regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com

Re: [rules-users] Dynamic updates of stateful sessions

2011-04-19 Thread Mattias Avelin
Hi! Yes, I have already implemented a KnowledgeAgentEventListener acts on KnowledgeBaseUpdatedEvent and ResourceCompilationFailedEvent. I use this to update my knowledgebase reference in my class that wraps the KnowledgeBase and KnowledgeAgent. Below is the code for this class ("DynamicDecision