Drools Fusion (event processing/temporal reasoning) – provides for complex event processing (Source: Wikipedia)
Questions tagged [drools-fusion]
164 questions
1
vote
2 answers
Timer in Drools Fusion not working
I am trying to run following rules in Drool Fusion( Version 5.4.1 ), but it's not working.
Ideally it should print "HELLO WORLD" every 7 seconds, it's not even triggering once.
Can anybody please help me to understand the timer in Drools?
…

user3164370
- 11
- 2
1
vote
0 answers
Drools windowed event processing
I can not understand the behavior of drools windows that i need for correlation of events, i mean i want to calculate the total amount of Objects with amount property inserting in engine over last 10 secs.
Here is my rule pattern:
Number(…

Sachin Verma
- 3,712
- 10
- 41
- 74
1
vote
1 answer
how to write dynamic temporal rules in drools-fusion
I'm trying to write a rule for an event that needs to check if something happens during some time window after something else happened. At the moment the code looks like this (it works correctly):
rule "Detect BPM reseed not starting when…

Pieter Breed
- 5,579
- 5
- 44
- 60
1
vote
1 answer
Is it possible to access the implicit timestamp of a Drools Fusion event?
I am trying to edit an existing Drools Fusion rule. The class we use for events does not have any kind of timestamp, so the rule is relying on the ones implicitly added by Drools at the time the events are created.
I would like to add some code to…

Simon B
- 232
- 6
- 14
1
vote
2 answers
Event Processing
I'm new to Drools. I'm trying to write a simple Complex Event Processing (CEP) application using Drools Fusion.
My requirement is
- on receipt of a CRITICAL event, perform an action (right now that's a SOP)
- if another CRITICAL event arrives…

Mohankumar D
- 63
- 1
- 2
- 8
1
vote
2 answers
Drools Fusion time based sliding window AND attribute filtre
I try to use a sliding time window in Drools 5.4.0.Final and given the following official documentation snippets:
StockTick() over window:time( 2m )
and
StockTick( company == "RHT" ) over window:length( 10 )
I was thinking that the mixed form was…

jineff
- 472
- 4
- 16
1
vote
0 answers
Detecting different types of Events using Drools Fusion?
I’m a bit new to Drools; Although, I have been reading the docs on Drools Fusion (Complex Event Processing), which states in Section 2.3:
"The streams can be provided to the application in various forms, from JMS queues to flat text files, from…

Larry
- 11,439
- 15
- 61
- 84
1
vote
1 answer
Drools Fusion sliding window sample not working
Am a newbie to Drools and trying out the sliding window concept.
My problem is to detect if atleast a sucessful transaction occured in 2 sales events. I am always getting the output as "A sale has happened over 2 events" even if such an event…

sreejith
- 31
- 6
0
votes
1 answer
LHS condition about duration how I can
In our company we are evaluate Drools as framework for our products.
For that I am trying some experiments and obviously I am now overwhelmed by lot of problems.
For example I don't know how make condition on duration of an event.
I don't know if…

Alberto Rugnone
- 1
- 1
- 2
0
votes
1 answer
Drools why StatefulKnowledgeSession has different KnowledgeBase
I am try to make some experience with Drools framework. During my test I try the following test
@Test public void testDrools() {
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
StatefulKnowledgeSession session =…

Alberto Rugnone
- 1
- 1
- 2
0
votes
1 answer
Drools Fusion duration and timestamp, why it doesn't work?
I am new in Drools applications and above all in Drools fusion. In my office we are working on a Standalone Complex Event Processing application. One of main requirements is the possibility to calculate starting time, frequency, end time, duration…

Alberto Rugnone
- 1
- 1
- 2
0
votes
0 answers
Drools - How to validate dynamically generated Drools rules from an ftl template file; before firing them?
want to validate the rules and send them to other part of monolith application so, that it is ready to fire all rules as i'm generating dynamic drools rules using a template(ftl) file. So, is there any best way to validate the rules before firing…

Tim
- 1
- 1
0
votes
0 answers
Drools session persistence issue
Currently I'm persisting drools session on postgresql on the sessioninfo table where there is a rulesbytearray column that is supposed to store the content of the session as a large object. Appears to be that in the case of postgresql large objects…

RIGOBERTO B.
- 23
- 2
0
votes
2 answers
Drools check if one list contains all elements of another list
How to check whether list of facts contains the list of parameters or attributes present. We want a Rule where The Fact is List of Variables and the attributes which we are passing it is also list of variables. We want to check whether the the Facts…

Samyak
- 81
- 8
0
votes
0 answers
Getting problem while comparing string in Drools XLS decision table
In cell B11 I am trying to compare my data with below column by using $1, but it is not working, the issue occurs only for String data I think.
Can anyone give me right explanation/reason that why compare is not working?
Instead, if I…

rohit pawar
- 17
- 3