Re: [rules-users] Drools Fusion (CEP) & event life cycle

2014-08-28 Thread Ephemeris Lappis
Hello. Indeed, I have tested with the @expires and the objects are discarded in this case. What I had understood in the documentation is precisely the other way that the engine is expected to control the events expiration : "Inferred Expiration" (8.8.2), when no temporal constraint involves the obj

Re: [rules-users] Drools Fusion (CEP) & event life cycle

2014-08-27 Thread Ephemeris Lappis
Hello. Indeed, I have tested with the @expires and the objects are discarded in this case. What I had understood in the documentation is precisely the other way that the engine is expected to control the events expiration : "Inferred Expiration" (8.8.2), when no temporal constraint involves the obj

Re: [rules-users] Drools Fusion (CEP) & event life cycle

2014-08-27 Thread Ephemeris Lappis
advice ? Thanks for your help. Regards. Ephemeris Lappis Le 27/08/2014 15:30, marianbuenosayres [via Drools] a écrit : > I think that if you want the automatic event lifecycle management to > delete your events, you first need to notify the engine when an event > is old enough to real

Re: [rules-users] Drools Fusion (CEP) & event life cycle

2014-08-06 Thread Ephemeris Lappis
Hello. Sorry to come back to my own post ! I have new questions about my event life cycle problems. In the following rule set, I have just a single rule that checks for events with a given message 'test'. I had understood that in "realtime" and "stream" modes, Drools should handle automaticall

Re: [rules-users] Drools Fusion (CEP) & clustering

2014-08-04 Thread Ephemeris Lappis
antime some other user on this mailing list may point you to some > detailed manual/tutorial. > > [1] http://www.redhat.com/summit/2014/presentations / > http://rhsummit.files.wordpress.com/2014/04/doyle_h_0945-high-availablity-cep-with-red_hat-jboss_brms1.pdf > > Ciao, > Matteo &g

[rules-users] Drools Fusion (CEP) & clustering

2014-08-04 Thread Ephemeris Lappis
Hello. I'm looking for some reference architecture for Drools CEP clustering. If I'm not wrong, the Drools 6.x documentation doesn't explain how to set a clustered environment to handle events processing. For example, how can we ensure load distribution, time windows control, state integrity, etc

[rules-users] Drools Fusion (CEP) & event life cycle

2014-07-24 Thread Ephemeris Lappis
Hello. I'm testing event processing in Drools, and after some basic tests, I have some questions about event life cycle management. According to the documentation, in stream mode, events may be automatically discarded by the engine when no rule, currently or in the future, applies to them. In th

Re: [rules-users] Rules compilation error with OSGi integration (6.1.0.Beta3)

2014-05-21 Thread Ephemeris Lappis
Apache Karaf 2.3.x with Drools 6.1.0.Beta3 and tell > me what happen. Which JDK do you sue ? > > > On Wed, May 21, 2014 at 9:03 AM, Ephemeris Lappis < > ephemeris.lap...@gmail.com> wrote: > >> Hello. >> >> Although without much conviction, I've tried

Re: [rules-users] Rules compilation error with OSGi integration (6.1.0.Beta3)

2014-05-21 Thread Ephemeris Lappis
Hello. Although without much conviction, I've tried the "Bundle-RequiredExecutionEnvironment: J2SE-1.7", but it doesn't change the compilation level of the rules... As I said in a previous answer, I don't know exactly how to do it, but I think the solution may be in the way that Drools takes the

Re: [rules-users] Rules compilation error with OSGi integration (6.1.0.Beta3)

2014-05-20 Thread Ephemeris Lappis
ans" > > rule "Cheese fans_@{row.rowNumber}" > when > Person(age == @{age}) > Cheese(type == "@{type}") > then > list.add("@{log}"); > end > end template > > > > On Tue, May 20, 2014 at 4:40 PM, Ephe

Re: [rules-users] Rules compilation error with OSGi integration (6.1.0.Beta3)

2014-05-20 Thread Ephemeris Lappis
ou have a > pax-exam test ? > > > On Tue, May 20, 2014 at 1:03 PM, Ephemeris Lappis < > ephemeris.lap...@gmail.com> wrote: > >> Hello. >> >> Here is the first lines of the error message : >> >> >> 14:58:57,457 | ERROR | tp1946301910-151 | Abstr

Re: [rules-users] Rules compilation error with OSGi integration (6.1.0.Beta3)

2014-05-20 Thread Ephemeris Lappis
Hello. Here is the first lines of the error message : 14:58:57,457 | ERROR | tp1946301910-151 | AbstractKieModule| 239 - org.drools.compiler - 6.1.0.20140429-1643 | Unable to build KieBaseModel:MyKBase Rule Compilation error : [Rule name='Main Rule'] my/tests/drools/osgi/

[rules-users] Rules compilation error with OSGi integration (6.1.0.Beta3)

2014-05-19 Thread Ephemeris Lappis
Hello. We have a very simple rules file that works as expected when running as a JUnit test in Eclipse with Maven dependencies, but fails when it is executing in ServiceMix with OSGi integration. The code is just like : raw> Map dialog = new LinkedHashMap<>(); KieSession kieSession = kieContaine

Re: [rules-users] Deploy Rules in separate OSGi bundles

2014-05-16 Thread Ephemeris Lappis
Hello.According to your advices I've done some tests with the Drools 6.1.0 fetaures, and it seems to work but with some problems.I've installed the feature as follow to start what seems to be the minimal needed package to make my application code work :features:addurl mvn:org.drools/drools-karaf-fe

[rules-users] Drools 5.5 and Java 7 syntax

2014-05-15 Thread Ephemeris Lappis
Hello.It seems that Drools 5.5 experiences problems translating RHS code with Java 7 syntax, while it's running with JDK 1.7.For example, literal numbers with thousand separator of form "*10_000*" are detected as errors, and generics forms like *List l = new ArrayList<>()*; is also refused because

Re: [rules-users] Deploy Rules in separate OSGi bundles

2014-05-14 Thread Ephemeris Lappis
3, 2014 at 8:24 PM, Ephemeris Lappis < > ephemeris.lap...@gmail.com> wrote: > >> Hello. >> >> I'll send you a project as described when our first tests work with a >> single bundle, which is not the case today. Indeed, we're experiencing >> problems, like

Re: [rules-users] Deploy Rules in separate OSGi bundles

2014-05-13 Thread Ephemeris Lappis
m not wrong only appears on version 6.1.0 Beta3. Is there any reason to use this beta instead of the last final version ? Thanks for you help. Regards. Ephemeris Lappis Le 13/05/2014 15:46, Charles Moulliard a écrit : Can you share your code as I have created such kind of project (bundle

[rules-users] Deploy Rules in separate OSGi bundles

2014-05-13 Thread Ephemeris Lappis
Hello. I'd like to separate cleanly my Drools system into 2 OSGi bundles : 1) the java code that uses the Kie API (6.0.1) and exposes service interfaces to the business part of the applications. Its code relies on someting like : KieServices kieServices = KieServices.Factory.get(); kieContainer

[rules-users] Deploy Rules in a separate OSGi bundles

2014-05-13 Thread Ephemeris Lappis
Hello. I'd like to separate cleanly my Drools system into 2 OSGi bundles : 1) the java code that uses the Kie API (6.0.1) and exposes service interfaces to the business part of the applications. Its code relies on someting like : KieServices kieServices = KieServices.Factory.get(); kieContainer

[rules-users] Deploy Rules in a separater OSGi bundle

2014-05-13 Thread Ephemeris Lappis
Hello. I'd like to separate cleanly my Drools system into 2 OSGi bundles : 1) the java code that uses the Kie API (6.0.1) and exposes service interfaces to the business part of the applications. Its code relies on someting like : KieServices kieServices = KieServices.Factory.get(); kieContainer

Re: [rules-users] Any form of "groub by" or "distinct" in accumulate/collect ?

2014-05-11 Thread Ephemeris Lappis
. I'll let you know about the results. Thanks. Regards. Ephemeris Lappis Le 10/05/2014 19:06, Jan Šťastný a écrit : > Hi, > maybe I misunderstood you, but what about a set collection. Just > implementd equals method of A properly and use accumulate function > collectLis

[rules-users] Any form of "groub by" or "distinct" in accumulate/collect ?

2014-05-10 Thread Ephemeris Lappis
Hello. Perhaps that my question has few sense or none... I've an object graph with say A, B and C. A has one or many B, that has one or many C. I can navigate through the relations between my objects in both direction. For example, I can do fo any instance of C : c.b.a (or c.getB().getA())... M

Re: [rules-users] Collect all occurrences of resulting data.

2014-04-21 Thread Ephemeris Lappis
ap to produce a JSON like object to be written into a Mongo base... Thanks a lot for your help. Any new advice is welcome ! Best regards. Ephemeris Lappis Le 21/04/2014 17:48, laune [via Drools] a écrit : > I recommend at most 3 levels of salience, and only if you have a > very limited

Re: [rules-users] Collect all occurrences of resulting data.

2014-04-21 Thread Ephemeris Lappis
7;s for that reason that all the ending part of the job is executed after the correct collection of the intermediary results. Another alternative ? Thanks again. Regards Ephemeris Lappis Le 21/04/2014 13:11, laune [via Drools] a écrit : > This is one of the (rare) cases where I'd

[rules-users] Generics in local declared types (Drools 6.0.1 final)

2014-04-21 Thread Ephemeris Lappis
Hello.I've tried to declare fields with generics in local types, but it seems to be always rejected.For example :I've also tried with ArrayList or other concrete classes, but the syntax seems to produce syntax errors.Is this a limitation in type declaration ?An idea ?Thanks for your help.Regards.

[rules-users] Collect all occurrences of resulting data.

2014-04-21 Thread Ephemeris Lappis
Hello. I'm looking for the better way to write a rule that collects data only when they have been all processed. For example, two input objects classes as facts : *Data* and *Category*. I declare a local type to memorize the result of the evaluation for each pair of fact. Some rule evaluates