Re: [rules-users] Drools Timers

2014-09-25 Thread Federico Bertola
Hi all, I've a big rule file that contains *many* rules like this: rule "rule1" when $obj1: OBJ(a==false, b=="C") $obj2: OBJ(b=="B", a==false) then <...> end Inspecting the RETE tree I've noticed that the first layer contains two alpha node, one for "a==false" and one for "b=="B", than

Re: [rules-users] StackOverflow when serializing KieBase

2014-08-01 Thread Federico Bertola
wrote: It should work, there should not be too much recursion. I’d suggest digging deeper to see if you can point us to the references that are suspect. Mark On 30 Jul 2014, at 17:28, Federico Bertola wrote: Hi all, when I try to serialize a rather large KieBase I constantly get the aforementi

[rules-users] StackOverflow when serializing KieBase

2014-07-30 Thread Federico Bertola
Hi all, when I try to serialize a rather large KieBase I constantly get the aforementioned error. After a bit of tracking I see that the error seems to appear when the KnowledgeBase try to serialize the Rete object. I belive this is not an infinite loop because it seems that the graph is quite d

[rules-users] Serialization issue.

2014-07-29 Thread Federico Bertola
Dear all, Some time ago I've submitted a pull request (#353) fixing a situation where a rule with large text prevent the serialization of the knowledge package. This is now the only thing that prevent us form using the original distribution. If there's nothing wrong or risky in it, it is possibl

Re: [rules-users] Is protobuf cache actually used?

2014-07-08 Thread Federico Bertola
And we have some tests here: > > https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/KieCompilationCacheTest.java > > > Edson > > On Mon, Jul 7, 2014 at 7:01 PM, Federico Bertola > wrote: >> Hi

Re: [rules-users] Is protobuf cache actually used?

2014-07-07 Thread Federico Bertola
falls back to JIT > compilation: > > https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/main/java/org/drools/compiler/rule/builder/dialect/java/JavaDialect.java#L627 > > Edson > > On Sat, Jul 5, 2014 at 11:34 AM, Federico Bertola > wrote: >> Hi,

[rules-users] Is protobuf cache actually used?

2014-07-05 Thread Federico Bertola
Hi, from what I see, the protobuf cache that the KnowledgeBuilder produce and saves as *.cache, is not currently used anywhere, right? If so, what would it be required to reload the compilation data inside the KnowledgeBuilder? There's something I'm missing or there is some piece of code demons

Re: [rules-users] Problems compiling huge rule base with kie-maven-plugin

2014-06-18 Thread Federico Bertola
Hi Mario, thanks for the quick reply. Yes I could definitely open a jira and a pull request, just be patient though, as I've to isolate the code from our own. Reproducing the slowdown I experienced would be a little problematic because it depends, I think, entirely on the size (and "shape") of ou

[rules-users] Problems compiling huge rule base with kie-maven-plugin

2014-06-18 Thread Federico Bertola
Hi all, at work we have a huge rule base (>2k rules with an average size of ~2Mib). I've found the building this RB with the latest kie-maven-plugin troublesome at best. I want to share my experience hoping that some Drools developer could help me. I'm using the latest Drools 6.x from the master

[rules-users] Possible bug with incremental compilation

2014-05-30 Thread Federico Bertola
Hi all, executing the test in "drools/drools-compiler/src/test/java/org/drools/compiler/integrationtests/" all goes well except if i write a kmodule xml inside the KieFileSystem. Is this supposed to happen? I cannot add or remove a KieBase during incremental compilation, or I'm doing something