Drools Fusion (event processing/temporal reasoning) – provides for complex event processing (Source: Wikipedia)
Questions tagged [drools-fusion]
164 questions
0
votes
2 answers
Event sequencing
I'm new in Drools and CEP. I'm trying to solve issue by events processing - derive complex events from sequences of atomic events.
For example, the sequence of A, B and C atomic events is D complex event.
How can I solve this issue with Drools rule…

Ivan Kuzminov
- 35
- 1
- 6
0
votes
0 answers
Counter values reset
When I restart jboss server all Drools counter values have been reset. But I need to keep previous values after restart the server. How Can I do this.
Thanks in advance.

Asha Perera
- 35
- 6
0
votes
1 answer
"no viable alternative at input n" and "mismatched input"
I have the following class
public class DroolsObjectRule {
private String backend;
private Long time;
private Long avgTime;
private boolean allow=true;
private String message;
//Set
//Get
}
My rule
rule…

UserMan
- 471
- 2
- 10
- 20
0
votes
1 answer
How to avoid hardcoding sliding window duration in Drools and pass time-window as argument.
I have started using drools a week ago.
I need to calculate average of a metric over a window-duration, say 4s. Below code-snippet of Drools will do this job.
... over window:time(4s) ...
However, I want to take this value as input to a rule with…
0
votes
1 answer
Insertions/evaluations are progressively slower when using temporal rule
I have a rule that looks for 2 consecutive events for the same entity. To stress test it, I inserted 10K consecutive events. I'm calling fireAllRules() after each event is inserted. I'm printing out timestamps after every 100 events. I'm noticing…

sumantp
- 3
- 2
0
votes
1 answer
What is Drools ? How Drools,Guvnor,Expert ,jBPM,Drools Fusion and optaPlanner all relate to?
I am completely new to Drools although I have written very small rules and deployed in Guvnor.
All that I have done is write series of if and else statements and deployed in the Guvnor.
I am wondering what is the use of this product?
Why there are…

Naveen Raj
- 801
- 11
- 26
0
votes
1 answer
Drools : How to use a variable in the duration specification?
I have a set of rules that fire each 15seconds.
As I want to unit-test these rules, I want to set dynamically this duration value.
More, I want to put it in my app's configuration. This value might be used in more than 20 rules...).
How can I do…

user3738021
- 103
- 6
0
votes
1 answer
Use of JBPM and Drools to build a near real time applications to process million of events a day
I'm not sure that this is the correct place to expose this, as I'm seeking opinions about a stack of technologies that are being recommended to me to build an application.
Let me just give some background. My system will receive around 1 million…

Joao Pereira
- 2,454
- 4
- 27
- 35
0
votes
0 answers
Drools Slow for batch processing
rule "ReportableRule1"
dialect "mvel"
when
rp : repoio( country == null )
then
rp.setOrigBuySellFlag( "E" );
System.out.println("This is the exception of rule1");
end.
Hi Steve,
This is the…

user2409470
- 11
- 5
0
votes
1 answer
Drools is very slow when we integrate with Talend ETL and process millions of records
we have used around 30 rules with multiple conditions in it. we are under the assumption that Drools takes one record and compares it against the records then will give the output for each one.So the time taken for processing 1 million record is…

user2409470
- 11
- 5
0
votes
1 answer
Dynamic window creation at run time - Drools Fusion 6 / Esper
I need to achieve a dynamic sliding window of length (5) where I have incoming flight statuses from various flights coming into one stream.
Based on the flight_id property from various flights - dynamic windows of length 5 have to be created at run…

user1497655
- 3
- 3
0
votes
1 answer
Drools Fusion De-duplication
I defined a class which acts as event to the rule engine
It has the following members
1. phone number
2. latitude
3. longitude
How do I formulate a rule wherein
1. The rule counts the number of distinct people in the same location
2. Same person if…

subbu
- 65
- 6
0
votes
1 answer
Drools Rule to handle 2 different facts inserted within a certain time
I need to handle a situation where I am notified when 2 different facts are received in my working memory within 30 seconds of each other. Then I want the system to remove the facts from the working memory after they are handled.
For example, say I…

El Guapo
- 5,581
- 7
- 54
- 82
0
votes
0 answers
Drools. cannot be cast to java.lang.Number
I have these declarations:
declare Event
@role(event)
@timestamp(time)
//@expires(100ms)
//params : Map
param : long
time : long
end
declare Expectation
event: Event
state: int //-1…

padibro
- 1,324
- 10
- 56
- 95
0
votes
1 answer
Drools Fusion: Strange behavior if I cange the filed and use it in the same instant
This is my code into an .rdl
rule "Fulfilment 24345"
when
$evPtr: LeftArmStretched($tsmp:time)
eval((3>$tsmp)==true)
then
System.err.println("$tsmp= "+$tsmp);
end
rule "set timestamp"
when
$las:LeftArmStretched();
then
…

padibro
- 1,324
- 10
- 56
- 95