Re: [rules-users] Drools Planner: Vehicle routing problems

2012-03-02 Thread Geoffrey De Smet
Just pushed my vehicle routing prototype, it works pretty well :) Op 27-02-12 12:16, Geoffrey De Smet schreef: Op 27-02-12 12:07, davidglassborow schreef: Geoffrey, Check your Solution's cloning method. If you clone the Visit, you need to make sure that planning variables of each cloned

Re: [rules-users] Drools Guvnor 5.0.1 - Memory Usage Tuning

2012-03-02 Thread tdakanalis
Hi again, I have collect some more information regarding the problem I mentioned in my previous post. I take a thread dump during the compilation process and as I can see the thread that makes the compilation is the following: http-8080-20 daemon prio=10 tid=0x7f445054d800 nid=0x6abb

[rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread gboro54
I am trying to run a partitioned rule base as we have a need to evaluate a large number of facts. We have around 160 rules which are coordinated using jBPM rule-flow groups(intermingled with some lightweight business logic). The business logic in the process executed quickly(80ms for 10,000 facts)

Re: [rules-users] Using an OWL Ontology in drools - advice

2012-03-02 Thread banduk
Hi, I am a Computer Engeneering student and I did an internship last year on DERI (Digital Enterprise Research Institute), where I researched about Semantic Web and Complex Event Processing (http://iswc2011.semanticweb.org/fileadmin/iswc/Papers/Workshops/SSN/ssn5.pdf). I really appreciated

Re: [rules-users] Using an OWL Ontology in drools - advice

2012-03-02 Thread Davide Sottara
Dear Mauricio and Anton and others, thanks again for your interest. The work-in-progress code can be found here: https://github.com/droolsjbpm/drools-chance/tree/master/drools-shapes Unfortunately, there's no documentation yet, but we can work through the code. If you are interested in

[rules-users] Streaming mode

2012-03-02 Thread Matteo Cusmai
Hi all, i have a big problem with drools fusion. I insert some new event (pojo object) into Working Memory, but another thread retract it after a few ms. Someone could tell me why? Thanks a lot, [java] gas2-event: 1330701201208 [java] INFO [2012-03-02 16:13:21,261] [ExpertSystem]

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread gboro54
After investagation I found the following: 10:29:45,421 ERROR [stderr] (pool-38-thread-2) at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:59) 10:29:45,423 ERROR [stderr] (pool-38-thread-2) at

Re: [rules-users] Streaming mode

2012-03-02 Thread Wolfgang Laun
What's the declare for the Event type? What does rule gas2-event do? -W 2012/3/2 Matteo Cusmai cusmaimat...@gmail.com Hi all, i have a big problem with drools fusion. I insert some new event (pojo object) into Working Memory, but another thread retract it after a few ms. Someone could

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread Mauricio Salatino
Why are you trying with that partitioning approach? By the why I notice that most of the time when people uses ruleflow-groups they didn't realize that all the evaluations are done at insertion time, not when the process reaches the rule flow group, is that you case? Doing consulting around these

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread gboro54
I understand that all the evaluations are happening at insertion time. The main reason for the groups is to intermix logic needed to execute outside of rules(i.e I don't want rules invoking DAO's to retrieve data). I am trying to partition because I need to be able to get a high level of messages

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread gboro54
I understand that all the evaluations are happening at insertion time. The main reason for the groups is to intermix logic needed to execute outside of rules(i.e I don't want rules invoking DAO's to retrieve data). I am trying to partition because I need to be able to get a high level of messages

Re: [rules-users] Using an OWL Ontology in drools - advice

2012-03-02 Thread Mark Proctor
On 02/03/2012 14:20, banduk wrote: Hi, I am a Computer Engeneering student and I did an internship last year on DERI (Digital Enterprise Research Institute), where I researched about Semantic Web and Complex Event Processing

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread Mauricio Salatino
So the question is.. for processing those messages, you can set up multiple sessions and evaluate each message separately? or do you need to have all the messages in the same session? Cheers On Fri, Mar 2, 2012 at 3:58 PM, gboro54 gbor...@gmail.com wrote: I understand that all the evaluations

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread gboro54
Executions need to happen in an order based on a data and a message id(at least at one part of the evaluation). Because of this my plan was to use dynamic salience and insert as many of the facts as I can at a time -- View this message in context:

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread Mauricio Salatino
But are the facts related with each other? do you need to analyze them all together inside the same session? Can you share a little bit more about your use cases? What do you mean with Execution execution of what? What do you mean with evaluation? Cheers On Fri, Mar 2, 2012 at 4:12 PM, gboro54

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread gboro54
We are writing a billing system using Drools to evaluate orders placed during the day(this is a month to date process which will run nightly and we will be bringing a real-time solution online later this year after we rewrite the existing). Base fees of these orders can happen in parallel and in

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread Mark Proctor
Parition yourself ahead of time. Choose a key that is a true partition of your data, chose the number of partitions, create a kbase per partition and then hash on your inserted data to get the target kbase. Mark On 02/03/2012 16:23, gboro54 wrote: We are writing a billing system using Drools

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread gboro54
Could you elaborate on that a little more Mark? Mark Proctor wrote Parition yourself ahead of time. Choose a key that is a true partition of your data, chose the number of partitions, create a kbase per partition and then hash on your inserted data to get the target kbase. Mark On

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread gboro54
Could someone explain a little more about how Drools does a partition. I believe I understand Mark's idea, I just need to flush it out some more -- View this message in context: http://drools.46999.n3.nabble.com/Drools-5-3-partitioned-rule-base-tp3793558p3794163.html Sent from the Drools: User

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread gboro54
Would you partition the KnowledgeBase or the Sessions? Additional would each Order being evaluated create a new session? gboro54 wrote Could you elaborate on that a little more Mark? Mark Proctor wrote Parition yourself ahead of time. Choose a key that is a true partition of your

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread Mark Proctor
Drools doesn't partition. You will need to build an external framework that partitions your data, and then assign a ksession per parition. Whether it's a ksession or kbase per partition depends on whether you can use the same rules per partition or not. Mark On 02/03/2012 17:33, gboro54 wrote:

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread gboro54
How does MultithreadEvaluationOption work on a kBase? It is not explained really clearly anywhere. I know if I insert single objects only this works but as soon as two more of an object goes in I begin getting NPE... Mark Proctor wrote Drools doesn't partition. You will need to build an

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread gboro54
Additionally when does partitioning by data cause performance to be compromised? It has always been in my experience and to my knowledge that building a complete session with facts is cheaper then iterating a list of facts, creating a session, and firing. Perhaps I am mistaken? Additionally is

Re: [rules-users] limits on number of rules in Guvnor in a package, loaded in knowledge base

2012-03-02 Thread dkrishna
We also ran into similar memory issues. Some object references are not being released. We load around 10,000 rules from different excels. When we reload for the 2nd time (without server/JVM restart) heap size was almost increased by 50%. It kept on increasing for each load and finally throws Out

[rules-users] NPE in FireAllRulesCommand (bug?)

2012-03-02 Thread Mike Melton
Drools 5.3.1.Final. I have a use case where I am executing a BatchExecutionCommand against a stateless session. One of the sub-commands is a FireAllRulesCommand, from which I would like to retrieve the number of rules actually fired. Since there is no factory or constructor method to configure

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread gboro54
I was thinking we could do separate sessions then queue up the results in order and process themI also like Mark's idea of partitioning -- View this message in context: http://drools.46999.n3.nabble.com/Drools-5-3-partitioned-rule-base-tp3793558p3794439.html Sent from the Drools: User forum

Re: [rules-users] 5.4.0.Beta2 parse error in consequence /* in string

2012-03-02 Thread Benjamin Bennett
Got permission from my company. Digging around think , correct me if I am wrong. The bug is actually most likely in the mvel project. I checked out the mvel project. In the mvel project there is method call skipWhiteSpace() . This method skips different types of comments. It is a minor

Re: [rules-users] Streaming mode

2012-03-02 Thread Matteo Cusmai
Hi Wolfgang, i think that have to study more in deed some manuals, because there are some aspects not very clear, in particular the threads behavior. For example, i have a class running in a container (thread A) that launch the session as follow: .. ksession =