Re: [rules-users] Regarding Jboss drools rules

2010-05-11 Thread Sai Venkat
Good Morning Mr.Laun, Yes you are correct.But request you to send me sample code for that sort of application as how to write ro implement rules. what class need to be written and rules related to that. waiting for your response thanks in advance    venkat

[rules-users] CHR 2010: Call for Participation

2010-05-11 Thread Leslie DE KONINCK
CALL FOR PARTICIPATION CHR 2010 7th International Workshop on Constraint Handling Rules associated with ICLP 2010 (part of FLoC 2010) Edinburgh, Scotland, 20 July 2010

Re: [rules-users] ClassCastException: org.drools.reteoo.RuleTerminalNode$TerminalNodeMemory cannot be cast to org.drools.reteoo.EvalConditionNode$EvalMemory

2010-05-11 Thread Edson Tirelli
Paul, Sorry for taking long to answer but I am on vacations with limited internet connection. You can find the changeset for that fix here: https://jira.jboss.org/jira/browse/JBRULES-2465?page=com.atlassian.jira.ext.fisheye:fisheye-issuepanel

[rules-users] Rules packaging and (binary?) reuse: searching for best practices

2010-05-11 Thread Ansgar Konermann
Hi all, I'm in search of a better way to package rules into a binary format before they get deployed - one that eases rules reuse more than the technique currently in use at my employer. We're using drools expert to perform risk assessment and feasibility checks for mortgage loans of a signifi

Re: [rules-users] Questions about using Knowledge Agent

2010-05-11 Thread Esteban Aliverti
Please note that the following line in the example will configure the ResourceScanner to scan all the resources every 2 second! I don't think this is what you want! *sconf.setProperty("drools.resource.scanner.interval", "2");* On Tue, May 11, 2010 at 1:25 PM, Esteban Aliverti < esteban.alive...

Re: [rules-users] Questions about using Knowledge Agent

2010-05-11 Thread Esteban Aliverti
Hi John, Knowledge Agent is indeed the replacement of RuleAgent. It maintains a kbase and update it using change sets. A change set is an xml that list all the resources that the agent should take care of. In conjunction with ResouceChangeNotifier and ResourceChangeScanner you can use a knowledge a

[rules-users] Questions about using Knowledge Agent

2010-05-11 Thread John Peterson
Hi all, I'm trying to get the sample code in the Drools 5.0.1 User Manual to work locally for a Knowledge Agent, but I'm missing some info (from my perspective) to get it to run. Question #1: >From the User Manual (3.2.6): KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAge

Re: [rules-users] Parallelization

2010-05-11 Thread Greg Barton
If you're using the sun VM multiple Threads will use multiple cores just fine. What version of java? Are you intending to max out the CPU on the machine? If so I suggest this configuration, for an 8 core box: 7 Threads, each running a StatefulKnowledgeSession. Concurrent garbage collection,

Re: [rules-users] Rule salience vs salience of ruleflow executions?

2010-05-11 Thread H.C.
Those maintenance rules possibly make other rules in my ruleflows re-evaluate and I need to share them across my ruleflow because they are applicable everywhere. In this particular case, I have a rule saying that if an error status is flagged (different from exception), halt drools and return. Th

Re: [rules-users] Parallelization

2010-05-11 Thread Swindells, Thomas
I'm not a guru but I'm pretty certain all modern JVMs support multiple cores well. You will probably make sure you are using the server VM (-server) and not the client VM (assuming you are using the standard VM). Depending on what you current machine is and whether or not you have 2 cpu's or j

Re: [rules-users] Parallelization

2010-05-11 Thread Steve Ronderos
Hi Daniel, I was reading the other day that a JVM implementation does not necessarily have to run Java threads in different Processes (taking advantage of multiple cores). If you saw a significant speedup then I would assume your JVM does this. It is worth investigating for your production d

Re: [rules-users] Parallelization

2010-05-11 Thread Mark Proctor
On 11/05/2010 13:55, djb wrote: > Hi Wolfgang, > > Ok, well I implemented my "option #2", which has cut it down to 23ms, which > is a good start. My timing is done by taking the time before, and after, > and dividing by the number of claims processed. (and averaging over a few > runs) > > I use o

Re: [rules-users] Parallelization

2010-05-11 Thread Mark Proctor
They are for simple CEP type applications, you won't see a benefit else where, possibly a slow down if you are doing more business type rules. Mark On 11/05/2010 09:40, djb wrote: > Hi Drools squad, > > This is a follow-up to my previous speed-related post. By boss is still > pushing to get 35ms

Re: [rules-users] Regarding Jboss drools rules

2010-05-11 Thread Wolfgang Laun
If I understand you correctly, you just have to classify data records (facts) as "passed" and "failed". If possible, add another field "result" to the class representing your "record" which may assume the values "undef", "passed", "fail". Write rules to detect the "passed" objects with result ==

Re: [rules-users] Parallelization

2010-05-11 Thread Wolfgang Laun
On Tue, May 11, 2010 at 2:55 PM, djb wrote: > > Hi Wolfgang, > > I use one thread per StatefulKnowledgeSession... My machine has 2 cores, > but > it will eventually be running on an 8 core beast, so i reckon this was a > good improvement. I was just worried that I wouldn't be able to > simultane

Re: [rules-users] Rule salience vs salience of ruleflow executions?

2010-05-11 Thread djb
Can you make an extra step? why not just put your rules before the split, in the rule-flow? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Rule-salience-vs-salience-of-ruleflow-executions-tp807973p809775.html Sent from the Drools - User mailing list archi

Re: [rules-users] Parallelization

2010-05-11 Thread djb
Hi Wolfgang, Ok, well I implemented my "option #2", which has cut it down to 23ms, which is a good start. My timing is done by taking the time before, and after, and dividing by the number of claims processed. (and averaging over a few runs) I use one thread per StatefulKnowledgeSession... My

Re: [rules-users] Regarding Jboss drools rules

2010-05-11 Thread Esteban Aliverti
Or you can attach an AgendaEventListener to your session. On Tue, May 11, 2010 at 6:26 AM, djb wrote: > > One option is, in the consequence part of your rule, to > say >String ruleName = drools.getRule().getName(); > and then store that in a global variable. That will let you see afterw

Re: [rules-users] Parallelization

2010-05-11 Thread Wolfgang Laun
Does your system support parallel execution of Java threads on multiple processors? Otherwise I don't see how parallelization will gain much since the Rete evaluation itself is clearly compile-time bound. How are you timing these 53ms? Does this include input time for your facts? Frequently, much

Re: [rules-users] Regarding Jboss drools rules

2010-05-11 Thread djb
One option is, in the consequence part of your rule, to say String ruleName = drools.getRule().getName(); and then store that in a global variable. That will let you see afterwards which rules fired. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/

Re: [rules-users] Regarding Jboss drools rules

2010-05-11 Thread Sai Venkat
Hi Mr.Laun, Thank you very much for the response. yes i mean Facts only.but my requirement is for a set of input which contains records in text or xls or anyother format we write some rules, based on the conditions the set of input if satisfies will give an outcome or result. so is there any trac

[rules-users] Guvnor M1 and jBOSS AS 5.1

2010-05-11 Thread Kessler Bortoluzzi, Mariana
Hi everyone, I'm having trouble deploying Guvnor M1 in jBOSS AS 5.1.0.GA. When I start the AS I become a long list of errors and at the end there is the message: DEPLOYMENTS IN ERROR: Deployment "vfsfile:/C:/Programme/JBOSS/jboss-5.1.0.GA/server/default/deploy/d rools-guvnor.war/" is i

Re: [rules-users] Regarding Jboss drools rules

2010-05-11 Thread djb
Have you looked here? The code for all the examples comes with the Eclipse plugin. http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html/ch08.html -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Regarding-Jboss-drools-rules-tp809290p

[rules-users] Parallelization

2010-05-11 Thread djb
Hi Drools squad, This is a follow-up to my previous speed-related post. By boss is still pushing to get 35ms down a bit, and I'm looking at parallelization options. I've looked through the forums, but not successfully... The options I see, are: 1. KnowledgeBase partitioning (setting Knowledge

Re: [rules-users] Regarding Jboss drools rules

2010-05-11 Thread Wolfgang Laun
This is the strangest request I have seen on this list... If you need a sample application, take your pick from the examples provided with Drools, which you could modify to show whatever you want to see. Anyway, what you write is far from a clear specification. There is no such thing as a "succes

[rules-users] Regarding Jboss drools rules

2010-05-11 Thread Sai Venkat
Hi could anyone send me a sample application which has two rules for a set of 5 records and process the rules show the output in any format(text,csv,xls...). the result should be dispalyed with both the success and failed records after it processed the rules. Thanks n Regards venkat