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
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

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

2014-08-27 Thread marianbuenosayres
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 realise it should be removed. This has to be managed adding the @expires annotation to the event declaration: declare Notification @role( e

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
Hello. Thanks for this first help. I had a look at the presentation, and what I specially noticed is its last sentence : "JBoss BRMS HA CEP does not come out-of-the-box."... I hope someone come with a more concrete feedback and advice... Indeed, possible projects in my perspective should come wit

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

2014-08-04 Thread Matteo Mortari
Ciao, I don't have a clustering setup in my case, but still, concerning "CEP + Cluster" topic which is also of my interest, I found quite insightful for some pointers, the presentation "High-availablity CEP with Red Hat JBoss BRMS" at the RH summit this year [1] Possibly it could help you somehow

[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

[rules-users] Drools Fusion - Intersection Of Events

2014-06-26 Thread code4dc
Hey guys, I am using the Drools Fusion temporal parameters to try to detect if two events have *any* overlap between the two of them. Can anyone suggest the cleanest way to do this using the temporal parameters? Currently I am comparing the two events using 'overlaps', 'overlappedby', 'includes' a

Re: [rules-users] Drools Fusion Dropping Actions to Events?

2014-04-24 Thread Chandra Sekhar Divi
Thanks Mario, It works with 6.1.0.Beta2. -Chandra. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Fusion-Dropping-Actions-to-Events-tp4029314p4029353.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

Re: [rules-users] Drools Fusion Dropping Actions to Events?

2014-04-23 Thread Mario Fusco
Hi, I developed a test case almost identical to the one you suggested and I am pasting it at the end of this email. In the last months we did a few fixes on the event processing part and indeed this test works as expected, i.e. the assertion at the end of the test is true meaning that all the 10K

Re: [rules-users] Drools Fusion Dropping Actions to Events?

2014-04-22 Thread Chandra Sekhar Divi
Hi Wolfgang, Thanks for the information, It works fine with the 5.6 version. Thanks, Chandra. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Fusion-Dropping-Actions-to-Events-tp4029314p4029324.html Sent from the Drools: User forum mailing list archive at Nabble.co

Re: [rules-users] Drools Fusion Dropping Actions to Events?

2014-04-22 Thread Wolfgang Laun
On 22/04/2014, Chandra Sekhar Divi wrote: > Thanks a lot for the information. > Adding 'Thread.sleep(1);' after every insert reduces the problem intensity, > but sometimes even this solution also does not perform all the expected > actions (May be some events are dropped due to race condition). >

Re: [rules-users] Drools Fusion Dropping Actions to Events?

2014-04-22 Thread Chandra Sekhar Divi
Thanks a lot for the information. Adding 'Thread.sleep(1);' after every insert reduces the problem intensity, but sometimes even this solution also does not perform all the expected actions (May be some events are dropped due to race condition). Is there a way I can wait for KIE session to digest t

Re: [rules-users] Drools Fusion Dropping Actions to Events?

2014-04-21 Thread Wolfgang Laun
n to all the events, but only 5000 actions are > performed, which means about 95K actopms are dropped. > > The same issue was posted in the thread > http://drools.46999.n3.nabble.com/rules-users-Drools-Fusion-Dropping-Events-td4023843.html, > but it is marked as resolved. > > The

[rules-users] Drools Fusion Dropping Actions to Events?

2014-04-21 Thread chandu_divi
in the thread http://drools.46999.n3.nabble.com/rules-users-Drools-Fusion-Dropping-Events-td4023843.html, but it is marked as resolved. The defect https://issues.jboss.org/browse/DROOLS-131 is also marked as fixed. But this issue seems to be appearing again. Here is my code. kmodule.xml http

Re: [rules-users] Drools Fusion inconsistencies at increasing event throughputs

2014-04-03 Thread Mario Fusco
ce to test this last improvement and tell me if it works for you. Thanks, Mario -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Drools-Fusion-inconsistencies-at-increasing-event-throughputs-tp4028947p4029112.html Sent from the Drools: User forum mailing list

Re: [rules-users] Drools Fusion inconsistencies at increasing event throughputs

2014-04-02 Thread Vieri
Mario, My fault. Here you are the drls: *Not working *(log #1 in my last mail) *[This is the drl I included in my first post to the list. The accumulate occurs in the when clause of the cron based rule.]* package it.intext.unity.test import it.intext.unity.test.SynthEvent; import java.util.Date

Re: [rules-users] Drools Fusion inconsistencies at increasing event throughputs

2014-04-02 Thread Mario Fusco
you paste test case you're using to reproduce this problem? Thanks again, Mario -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Drools-Fusion-inconsistencies-at-increasing-event-throughputs-tp4028947p4029093.html Sent from the Drools: User

Re: [rules-users] Drools Fusion inconsistencies at increasing event throughputs

2014-04-02 Thread Vieri
Hi all, We tested the commit using the latest snapshot (6.1.0-SNAPSHOT, I went quickly through the code and it seems the right version). Everything works as expected a part from a strange issue, that seems related to event throughput. Namely, when usic the basic pattern for counting (i.e. no CronTr

Re: [rules-users] Drools Fusion inconsistencies at increasing event throughputs

2014-04-01 Thread Vieri
I tested it with both cron and interval > timers. > > Thanks again for your help, > Mario > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/rules-users-Drools-Fusion-inconsistencies-at-increasing-event-throughputs-tp4028947p4029

Re: [rules-users] Drools Fusion inconsistencies at increasing event throughputs

2014-04-01 Thread Mario Fusco
: http://drools.46999.n3.nabble.com/rules-users-Drools-Fusion-inconsistencies-at-increasing-event-throughputs-tp4028947p4029070.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users

Re: [rules-users] Drools Fusion inconsistencies at increasing event throughputs

2014-04-01 Thread Mark Proctor
We have this fixed now. Hopefully this will be in the nightly build, and available for testing tomorrow. I’ll ping with a link to the nightly builds once it’s available. Mark On 31 Mar 2014, at 14:34, Mark Proctor wrote: > We are still working on this, we’ve found a number of related points,

Re: [rules-users] Drools Fusion inconsistencies at increasing event throughputs

2014-03-31 Thread Mark Proctor
We are still working on this, we’ve found a number of related points, as we are doing a full audit of the code. We’ll post as soon as we have the fixes available in a nightly build, so that people can test. Mark On 29 Mar 2014, at 12:50, Mark Proctor wrote: > Mario has found an issue at a sync

Re: [rules-users] Drools Fusion inconsistencies at increasing event throughputs

2014-03-29 Thread Mark Proctor
Mario has found an issue at a sync point, which can happen if it’s trying to schedule a timer at the same time that it’s firing that same timer from an update. We are trying to resolve that now. See lines 121 and 394, which later impacts lines 289 and 330. https://github.com/droolsjbpm/drools/bl

Re: [rules-users] Drools Fusion inconsistencies at increasing event throughputs

2014-03-29 Thread Vieri
Mark, thanks for your update. I don't know if this can help, but I added a simple AgendaEventListener to the test case and it seems that at some point drools stops matching the "Create event" rule, while facts (well, events) are still inserted and other rules are triggered properly. Vieri On 28

Re: [rules-users] Drools Fusion inconsistencies at increasing event throughputs

2014-03-25 Thread Mario Fusco
2014] epm = 2969 Total events: 29000 [Tue Mar 25 13:47:20 CET 2014] epm = 2969 -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Drools-Fusion-inconsistencies-at-increasing-event-throughputs-tp4028947p4028955.html Sent from the Drools: User forum mailing list archi

Re: [rules-users] Drools Fusion inconsistencies at increasing event throughputs

2014-03-25 Thread Vieri
Wolfgang, thanks for the prompt reply. Inline comments. On 25 March 2014 09:12, Wolfgang Laun wrote: > A rule with timer will only continue firing if its first true state > remains constant. This means that you can't do what you want to do > this way. (You might set up a rule with a repeating o

Re: [rules-users] Drools Fusion inconsistencies at increasing event throughputs

2014-03-25 Thread Wolfgang Laun
A rule with timer will only continue firing if its first true state remains constant. This means that you can't do what you want to do this way. (You might set up a rule with a repeating or cron timer that inserts a Trigger fact that triggers the accumulate and is retracted, or do some similar haqu

Re: [rules-users] Drools fusion

2014-02-11 Thread Wolfgang Laun
You can match on hid but you'll have to write a sum using value1+value2+value3 +value4. -W On 11/02/2014, Raja Sekhar wrote: > Sorry for the typo. I am looking for something like group by in a sql query > where i can group by hid and sum up the values > Is this something available . > > Regards,

Re: [rules-users] Drools fusion

2014-02-11 Thread Raja Sekhar
Sorry for the typo. I am looking for something like group by in a sql query where i can group by hid and sum up the values Is this something available . Regards, Raj On 11 February 2014 17:03, Wolfgang Laun wrote: > See below. > > On 11/02/2014, Raja Sekhar wrote: > > Hi, > > I have values li

Re: [rules-users] Drools fusion

2014-02-11 Thread Wolfgang Laun
See below. On 11/02/2014, Raja Sekhar wrote: > Hi, > I have values like this > > id hid value1 value2 value3 value4 > 1 1 100 100100 100 > 2 1 100100 100 100 > 3 2 150 150 150 150 > 4 2 150150 150 150 > > the end result should be e

Re: [rules-users] Drools fusion

2014-02-11 Thread Raja Sekhar
Hi, I have values like this id hid value1 value2 value3 value4 1 1 100 100100 100 2 1 100100 100 100 3 2 150 150 150 150 4 2 150150 150 150 the end result should be e all hids with 1's should summed up all hids with 2's should summ

Re: [rules-users] Drools fusion

2014-02-11 Thread Wolfgang Laun
On 11/02/2014, Raja Sekhar wrote: > Hi All, > How can i perform aggregation on group with drools fusion. By performing all the necessary steps. A more detailed answer might be provided for a more detailed question. -W > > Regards, > Raja Sekhar A > > -- > Raja Sekhar Amirapu >

[rules-users] Drools fusion

2014-02-11 Thread Raja Sekhar
Hi All, How can i perform aggregation on group with drools fusion. Regards, Raja Sekhar A -- Raja Sekhar Amirapu -- "If any anyone can do it, i can do it. If no one else can do it, i must do it" ___ r

Re: [rules-users] [drools-fusion] Detecting a Trend in Data

2013-11-04 Thread code4dc
Guys thank you so much for that quick response and fantastic solutions!! Davide, thank you for your input! The 2nd approach would be very useful especially if I have to go from detecting unbroken trends to detecting statical trends! laune, I used your approach and it gave me exactly the kind of f

Re: [rules-users] Drools fusion logic

2013-11-03 Thread Wolfgang Laun
Once for each MyEvent after its insertion and once after each update/modify of an existing fact. A window:time doesn't change the fundamentals, it acts just like any other constraint based on the object's attributes. -W On 03/11/2013, Elran Dvir wrote: > Hi all, > > I am using Drools Fusion in

Re: [rules-users] [drools-fusion] Detecting a Trend in Data

2013-11-03 Thread Davide Sottara
Quick ideas (not tested): 1) Detect an always increasing trend: ensure that no previous value - possibly scoped by a sliding window - is greater than the current $current : MyPoint( $val : value ) not MyPoint( value > $val, this before $current ) over window:length(3) 2) A more robust approach,

[rules-users] [drools-fusion] Detecting a Trend in Data

2013-11-03 Thread code4dc
Hey guys, I am trying to come up with a way to get Drools to detect a trend in a dataset. The data is very basic and looks something like this: (each row represents an object in the WM) Time Value 10:001 11:002 12:003 01:001 02:00

[rules-users] Drools fusion logic

2013-11-03 Thread Elran Dvir
Hi all, I am using Drools Fusion in stream mode. Let's assume I have a very simple rule: rule "Simple" enabled true dialect "java" no-loop when $myEvent : MyEvent() then System.out.println($myEvent.toString()); end 1. When will the rule be fired? If there is a "MyEvent" i

Re: [rules-users] Drools Fusion, best practise?!

2013-10-16 Thread Alexander Wolf
to give a link to your paper? > > I'm also trying to implement a similar rule, and as such, would really > appreciate hearing - and ideally seeing -the best practice approach to this. > > Br > Anton > > > > -- > View this message in context: > http://d

Re: [rules-users] Drools Fusion, best practise?!

2013-10-16 Thread kurrent93
Are you able to give a link to your paper? I'm also trying to implement a similar rule, and as such, would really appreciate hearing - and ideally seeing -the best practice approach to this. Br Anton -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Drools-F

Re: [rules-users] Drools Fusion, best practise?!

2013-10-16 Thread Wolfgang Laun
Use what I call "peephole technique" in my paper on design patterns. Here, the peephole would hold references to the last,next-to-last, last but two,... event, to be updated with each new event. The stack/pop looks rather horrid, if I'm permitted to say so... ;-) -WL On 16/10/2013, Alexander Wol

[rules-users] Drools Fusion, best practise?!

2013-10-16 Thread Alexander Wolf
Hey, I try to use drools fusion to detect patterns in an event stream. Each time an event occurs I insert it into my ksession and call fireAllRules(). Most of my rules need to reason over the newest event (the one that just came in) in conjunction with events that happend before or after that.

Re: [rules-users] Drools Fusion 6.0.0.CR3

2013-09-11 Thread Mark Proctor
If you were to wait for the required time and simply call fireAllRules again, the timer base rule (as a result of the not) will be executed. In 6.1 we now have a special TimerNode: https://github.com/droolsjbpm/drools/blob/master/drools-core/src/main/java/org/drools/core/phreak/PhreakTimerNode.ja

Re: [rules-users] Drools Fusion 6.0.0.CR3

2013-09-11 Thread Mark Proctor
Unless you are using fireUntilHalt there is now no longer any async reactivity. As discussed before, we have a stronger separation now between passive and reactive mode. If you want to see what's happening, there is now a new trace debug information. You'll need a logback file similar to this,

[rules-users] Drools Fusion in JEE environment

2013-07-18 Thread IK81
Hi all, i am planning to use the Drools engine in the stream mode within an JEE application server. I have to process events of different users which can define their own rules. So I plan to instantiate a stateful session for each user and populate them with the user's rules. However, I am concern

[rules-users] Drools Fusion + Twitter4J + Guvnor Demo

2013-06-18 Thread Toshiya Kobayashi
Hello, I wrote a Drools Complex Event Processing demo which is a web application based on Drools Fusion + Twitter4J + Guvnor. http://tkobayas.wordpress.com/2013/06/15/drools-fusion-twitter4j-guvnor-demo/ https://github.com/tkobayas/twitter-cep-web In 2012 JUDCON India, I presented this demo ba

Re: [rules-users] Drools Fusion Dropping Events?

2013-05-15 Thread Davide Sottara
Last week I found and fixed a very bad bug that seems to fit your case https://issues.jboss.org/browse/DROOLS-131 This code should work in 5.6.0-SNAPSHOT and later versions. I have seen DROOLS-138, but won't be able to work on it before the weekend Davide On 05/15/2013 11:12 PM, Jason Barto wro

Re: [rules-users] Drools Fusion Dropping Events?

2013-05-15 Thread Jason Barto
Wolfgang, the code to reproduce is below. I'm hoping to process between 20k and 50k events through Drools per second thus the extreme high-throughput testing. I could settle for a single Drools node handling only say 5K per second IFF I could cluster Drools but I've not yet found a way to distribu

Re: [rules-users] Drools Fusion Dropping Events?

2013-05-15 Thread Wolfgang Laun
What you describe is definitely not "expected behaviour" - it's more like that race condition (or another one) already being in 5.3. Posting your code might be a good idea ;-) -W On 16/05/2013, Jason Barto wrote: > I've been working to load test Drools 5.3 to determine if its a fit for a > projec

[rules-users] Drools Fusion Dropping Events?

2013-05-15 Thread Jason Barto
I've been working to load test Drools 5.3 to determine if its a fit for a project. As part of the test I programmatically insert events as rapidly as possible; an example, my earlier test inserted 10k events in about 300ms. There is currently a single rule which reads the event and stores the eve

Re: [rules-users] Drools Fusion: Finding an event that occuring after an event but not before it

2013-04-16 Thread Alex Burman
so I've now come up with: $foo1 : Foo($status : Status) not(Foo(Status == $status. this before $foo1)) $dupes : ArrayList (size>0) from collect ( Foo(Status == $status, this coincides $foo1)) $fin : Foo() from $dupes $foos : ArrayList (size>0) from collect ( Foo(Status != $status, this after

Re: [rules-users] Drools Fusion: Finding an event that occuring after an event but not before it

2013-04-15 Thread Wolfgang Laun
If there is no other attribute that distinguishes between the two Foo objects at the same time and with the same status, then the theory says that there is just one fact/event and you just happen to have the data duplicated. Getting rid of the duplicate may be one way of solving your problem. Anot

[rules-users] Drools Fusion: Finding an event that occuring after an event but not before it

2013-04-15 Thread burmanator
I am trying to track when an event object Foo with a distinguishing identifier of Status. I want to try and identify a list of events when a Foo event with Status 2 happens after an event with Status 1 but at the same time a Status 1 has not happened before. fight now I've come up with: $foo1 :

Re: [rules-users] Drools Fusion and Twitter Storm

2013-01-05 Thread karlunho
Unfortunately riemann.io (along with other monitoring systems such as cube, graphite, etc) don't do distributed computation - which is why I wanted to use Storm in the first place. Esper's event processing language is more easy to understand the drools, but still has fundamentally the same limita

Re: [rules-users] Drools Fusion and Twitter Storm

2013-01-05 Thread Ejaz Mohammed
I'm looking for something similar for monitoring domain. I'm still investigating ... couple of tools I came across are http://riemann.io/ http://esper.codehaus.org/ These are not related to drools Ejaz On Sat, Jan 5, 2013 at 10:18 AM, karlunho wrote: > Hi Folks, > > I'd like to hear about

[rules-users] Drools Fusion and Twitter Storm

2013-01-05 Thread karlunho
Hi Folks, I'd like to hear about any stories of using Drools in combination with Twitter's Storm . The problem that I'm trying to solve is making a highly scalable event processing system with the following properties: 1. Lots of events for the same timeframe - tha

Re: [rules-users] [Drools Fusion] Accessing Events' time (read-only) with Drools in STREAM mode, REALTIME clock

2012-10-12 Thread Davide Sottara
Stefano Bragaglia wrote > Hi guys, > I just realised that it is not possible to take advantage of the > default time handling and access the timestamp value at the same time. Agreed, one may want to write both qualitative ( A after B ) and quantitative constraints ( A.time > x ) on an event.

Re: [rules-users] Drools fusion how to I catch an Exception

2012-09-05 Thread Wolfgang Laun
OK, using exactly the same static class Message - I get an error returned from the builder. Only thing I can think of is some error in the Eclipse setup, Drools runtime, classpath,... I compile and run such small samples from a Linux shell command line, so I avoid all such possible problems. -W

Re: [rules-users] Drools fusion how to I catch an Exception

2012-09-05 Thread Wolfgang Laun
There's another thing I changed which might have an impact: I changed Message to be a class on its own Message.java file. It's possible that MVEL is confused by that and runs into a bug. Try this, please. -W On 5 September 2012 16:08, RichardAmbridge wrote: > I have tried with 5.3.0 and 5.4.0

Re: [rules-users] Drools fusion how to I catch an Exception

2012-09-05 Thread RichardAmbridge
I have tried with 5.3.0 and 5.4.0, each time I run it the getErrors is blank (and hasErrors() is false) So the compile is always passing for me. However, when I run it under 5.4.0 (was using 5.3.0) I now get in the output: Inserting message Fire all rules Hello added Sleep 10 After5 then start U

Re: [rules-users] Drools fusion how to I catch an Exception

2012-09-05 Thread Wolfgang Laun
Perhaps do a "clean project"? On 05/09/2012, RichardAmbridge wrote: > What is flagging an error for you? > > Eclipse plugin shows error, but it compiles. > > KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); > kbuilder.add(ResourceFactory.newClassPathResourc

Re: [rules-users] Drools fusion how to I catch an Exception

2012-09-05 Thread Wolfgang Laun
This is what I get on standard output when I run your code with 5.4.0 (only renamed the main class and the package): Unable to Analyse Expression System.out.println( "After5 then start" ); m.status=$m.status; System.out.println( "After5 then stop" );

Re: [rules-users] Drools fusion how to I catch an Exception

2012-09-05 Thread RichardAmbridge
What is flagging an error for you? Eclipse plugin shows error, but it compiles. KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); kbuilder.add(ResourceFactory.newClassPathResource("Sample.drl"), ResourceType.DRL);

Re: [rules-users] Drools fusion how to I catch an Exception

2012-09-05 Thread Wolfgang Laun
@Geoffrey: But Richard's code does check for errors and aborts by throwing an Exception. And it works - see my other email. -W On 05/09/2012, Geoffrey De Smet wrote: > Take a look at this open jira: >https://issues.jboss.org/browse/JBRULES-2079 >ruleBase.addPackage(packageBuilder.getPa

Re: [rules-users] Drools fusion how to I catch an Exception

2012-09-05 Thread Wolfgang Laun
Works for me, i.e., the DRL compiler flags an error. Checked with 5.2.0, 5.3.0, 5.4.0. -W On 05/09/2012, RichardAmbridge wrote: > If I have a rule that has an error in it, the error isn't being caught by > the > compiler and the error doesn't happen as the Object is inserted into the > session,

Re: [rules-users] Drools fusion how to I catch an Exception

2012-09-05 Thread Geoffrey De Smet
Take a look at this open jira: https://issues.jboss.org/browse/JBRULES-2079 ruleBase.addPackage(packageBuilder.getPackage()); should fail-fast with a clear error message if the packageBuilder has any errors And take a look at PackageBuilder.hasErrors() Op 05-09-12 15:14, RichardAmbridge sc

[rules-users] Drools fusion how to I catch an Exception

2012-09-05 Thread RichardAmbridge
If I have a rule that has an error in it, the error isn't being caught by the compiler and the error doesn't happen as the Object is inserted into the session, it only happens after a time period completes, then Drools silently fails. How can I catch these silent failures. See below for test case.

Re: [rules-users] Drools Fusion: expiration

2012-05-28 Thread Matteo Cusmai
So, from documentation, does the explicit expiration work when we don't use time operator. Thanks, Matteo Cusmai Il giorno 29/mag/2012 08:20, "Wolfgang Laun" ha scritto: > This quote is from the current version of "Fusion": > > "The above example declares an expiration offset of 30 minutes for

Re: [rules-users] Drools Fusion: expiration

2012-05-28 Thread Wolfgang Laun
This quote is from the current version of "Fusion": "The above example declares an expiration offset of 30 minutes for StockTick events. After that time, assuming no rule still needs the event, the engine will expire and remove the event from the session automatically." The catch is, as you may h

[rules-users] Drools Fusion: expiration

2012-05-28 Thread Matteo Cusmai
Hi all, i have noticed a strange behavior, but i am not sure that i depend on drools or depend by my bad knowledge of it. I am using drools fusion and i have a lot of classes with role event. I have put them the expiration value to 5 minutes. >From my understanding, if i use explicit expiration, as

Re: [rules-users] Drools-Fusion: Problem with loading data

2012-03-29 Thread Wolfgang Laun
Indeed, now you have avoided creating the full Cartesian product POS x Customer. -W On 30/03/2012, Luciano Molinari wrote: > Hi Wolfgang, > > Do you mean something like this? > > rule "rule_suspiciousTransactionInDifferentsPOSOfSameCustomer" > dialect "mvel" > when > $trans1 : Ev

Re: [rules-users] Drools-Fusion: Problem with loading data

2012-03-29 Thread Luciano Molinari
Hi Wolfgang, Do you mean something like this? rule "rule_suspiciousTransactionInDifferentsPOSOfSameCustomer" dialect "mvel" when $trans1 : Event($logicNumber : logicNumber, $customer : customer) from entry-point StreamTransactions $trans2 : Event(logicNumber != $logicNumbe

Re: [rules-users] Drools-Fusion: Problem with loading data

2012-03-29 Thread Wolfgang Laun
Rule "rule_suspiciousTransactionInDifferentsPOSOfSameCustomer" in combination with many POS and many Customer facts is an anti-pattern. The rule starts looking for POS facts: you insert plenty. Then, it looks for Customers: you insert a bundle. And so it combines the first POS with all Customers,

Re: [rules-users] Drools Fusion: updating event duration

2012-02-24 Thread Edson Tirelli
A couple comments: * The temporal reasoning features/operators are available in both CLOUD and STREAM mode. The biggest differences are that in CLOUD mode there is no automatic garbage collection of old events and you can't use sliding windows, but everything else works. * You can insert event

Re: [rules-users] Drools Fusion: updating event duration

2012-02-24 Thread Matteo Cusmai
Hi Wolfgang, thanks a lot for the explanation, but i am very sad now. I have to use STREAM mode, because i am implementing a spatio-temporal expert system, so, i need of temporal reasoning. I need to compare events on time too. >From my understaning, i am limitated by: - i cannot update timesta

Re: [rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Wolfgang Laun
On 22/02/2012, Edson Tirelli wrote: >If your use case somehow has "mutable" events, you can retract, change > the duration and reinsert. But mind the requirements of STREAM mode: Events in each stream must be time-ordered. I.e., inside a given stream, events that happened first must be insert

Re: [rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Edson Tirelli
If your use case somehow has "mutable" events, you can retract, change the duration and reinsert. The engine uses optimizations for the temporal reasoning that are based on the fact that events should be immutable. That is why the engine "resolves" the timestamp/duration attributes at insert tim

Re: [rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Matteo Cusmai
Hi Edson, so, when i want modify an event, i could do as follow: - clone event; - change the duration - retract the previuos event - insert the new event Is it right? Bye bye, Matteo. 2012/2/22 Edson Tirelli > >Unfortunately you can't update event durations or timestamp. Even

Re: [rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Edson Tirelli
Unfortunately you can't update event durations or timestamp. Events are supposed to represent things that happened and as so, are immutable (other than data enrichment). If an event representation is no longer true, that event has to be retracted. Most common case is when you are dealing with at

Re: [rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Matteo Cusmai
Hi Wolfgang, this is an extract of drl file: declare GasObservation @role(event) @startTimestamp(timestamp) @expires( 10s ) @duration(duration) end declare GasEvent @startTimestamp(timestampDate) @role(event) @duration(duration) end rule "gas1-event" no-loop w

Re: [rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Wolfgang Laun
A minimum but complete set of *.java and *.drl files would help. -W 2012/2/22 Matteo Cusmai > > Hi all, > i am using Drools Fusion in multi sensor data fusion system. I have some > rules that generate a new event when some situations occur. But from the > other hand, i would like to update the e

[rules-users] Drools Fusion: updating event duration

2012-02-22 Thread Matteo Cusmai
Hi all, i am using Drools Fusion in multi sensor data fusion system. I have some rules that generate a new event when some situations occur. But from the other hand, i would like to update the event, when i understand that new sensor observation is referring to the same event. I have my Event clazz

Re: [rules-users] Drools fusion example in 5.3.0

2011-12-06 Thread Geoffrey De Smet
sers@lists.jboss.org > Sent: Tue, > 06 Dec 2011 20:24:12 +0800 > Subject: Re: [rules-users] Drools fusion example > in 5.3.0 > > >> Please see >> https://issues.jboss.org/browse/JBRULES-3306 >> I 'll try to figure out what's going wrong. >> >

Re: [rules-users] Drools fusion example in 5.3.0

2011-12-06 Thread Salina Fung/UFL - ICIL
Noted. Thanks will wait Thanks Salina - Original Message - From: Geoffrey De Smet [mailto:ge0ffrey.s...@gmail.com] To: rules-users@lists.jboss.org Sent: Tue, 06 Dec 2011 20:24:12 +0800 Subject: Re: [rules-users] Drools fusion example in 5.3.0 > Please see >

Re: [rules-users] Drools fusion example in 5.3.0

2011-12-06 Thread Geoffrey De Smet
Please see https://issues.jboss.org/browse/JBRULES-3306 I 'll try to figure out what's going wrong. Op 06-12-11 13:12, Salina Fung/UFL - ICIL schreef: > ^ > [Line: 56, Column: 28] : [Rule name='If the drop is between 6% and 8%, buy > more shares'] > > Unable to Analyse Expression percent< -0.

[rules-users] Drools fusion example in 5.3.0

2011-12-06 Thread Salina Fung/UFL - ICIL
^ [Line: 56, Column: 28] : [Rule name='If the drop is between 6% and 8%, buy more shares'] Unable to Analyse Expression percent < -0.06: [Error: Comparison operation requires compatible types. Found class org.mvel2.util.MethodStub and class java.lang.Double] [Near : {... percent < -0.06 }] I

Re: [rules-users] Drools Fusion demo using twitter4j, Drools Workshop, Argentina (2011)

2011-08-23 Thread Edson Tirelli
Hi Alex, It is here: https://github.com/droolsjbpm/droolsjbpm-contributed-experiments/tree/master/twittercbr We would like to develop a proper web GUI for it and integrate it with Guvnor that now supports CEP constructs, but did not had the time to do it yet... if anyone would like to help,

Re: [rules-users] Drools Fusion demo using twitter4j, Drools Workshop, Argentina (2011)

2011-08-23 Thread Tihomir Surdilovic
https://github.com/droolsjbpm/droolsjbpm-contributed-experiments/tree/master/twittercbr On 8/23/11 5:12 PM, Alex Ross wrote: Did Edson ever post the example code. If yes, from where might I download it? ___ rules-users mailing list rules-users@lists

[rules-users] Drools Fusion demo using twitter4j, Drools Workshop, Argentina (2011)

2011-08-23 Thread Alex Ross
Did Edson ever post the example code. If yes, from where might I download it? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Drools-Fusion : Inserting an Event in to an "entry-point" stream in the RHS of a rule?? Pls help

2011-08-04 Thread Mauricio Salatino
I need to check if that's the correct syntax, but in the right hand side as far as i know you can also do insert() and retract() that uses the kcontext to be executed. I think that is just syntax sugar from the parser side. 2011/8/4 Wolfgang Laun > > > 2011/8/4 Mauricio Salatino > >> there is

Re: [rules-users] Drools-Fusion : Inserting an Event in to an "entry-point" stream in the RHS of a rule?? Pls help

2011-08-04 Thread Wolfgang Laun
2011/8/4 Mauricio Salatino > there is short way to do the same without using the kcontext: you should be > able to do something like: > > entry-point['Temporal Reasoning'].insert(evt); > That would surprise me, "entry-point" not being a valid Java identifier. The parser would see an expression.

Re: [rules-users] Drools-Fusion : Inserting an Event in to an "entry-point" stream in the RHS of a rule?? Pls help

2011-08-04 Thread Mauricio Salatino
there is short way to do the same without using the kcontext: you should be able to do something like: entry-point['Temporal Reasoning'].insert(evt); Please check the syntax in the docs. 2011/8/4 Esteban Aliverti > This should work: > > when >... > then > TransactionEvent evt = new

Re: [rules-users] Drools-Fusion : Inserting an Event in to an "entry-point" stream in the RHS of a rule?? Pls help

2011-08-04 Thread Esteban Aliverti
This should work: when ... then TransactionEvent evt = new TransactionEvent(); evt.setMessage("Temporal Reasoning"); kcontext.getKnowledgeRuntime().getWorkingMemoryEntryPoint("Temporal Reasoning").insert(evt); end Best Regards, Esteban Ali

Re: [rules-users] Drools-Fusion : Inserting an Event in to an "entry-point" stream in the RHS of a rule?? Pls help

2011-08-04 Thread Amila Suriarachchi
This post has done some time ago. is there a solution for this currently? -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Fusion-Inserting-an-Event-in-to-an-entry-point-stream-in-the-RHS-of-a-rule-Pls-help-tp61920p3224799.html Sent from the Drools: User forum mailing lis

Re: [rules-users] Drools Fusion Performance Evaluation

2011-06-28 Thread Wolfgang Laun
The standard well-established answer to this kind of question is that no benchmark can provide a reliable basis for predicting the behaviour of any particular application. It's easy to benchmark the simple insertion of facts (= events) where there is no or just a single rule; this will give you an

[rules-users] Drools Fusion Performance Evaluation

2011-06-28 Thread Weiss, Wolfgang
Hi all! Can anybody point me to a performance evaluation of Drools? I found some papers [1], [2] which focus on the rules part but I'm particularly interested in the event processing part of Drools. I want to know how many events can be processed per second with which latency, something that is

Re: [rules-users] Drools Fusion - marshalling events

2011-02-11 Thread Mark Proctor
On 11/02/2011 22:19, mproch wrote: > Hello, > I would like to know if there is a mechanism that allows for persistence of > temporal events (Drools Fusion) - for example to be able to survive server > crash. > > It doesn't work out of the box - I raised > https://issues.jboss.org/browse/JBRULES-229

  1   2   >