Drools Fusion (event processing/temporal reasoning) – provides for complex event processing (Source: Wikipedia)
Questions tagged [drools-fusion]
164 questions
2
votes
1 answer
Drools Fusion SessionPseudoClock Not working as expected
I am trying to set KieSession date to same date with the date variable in my object before running the rules. I use this configuration to create my KieSession
KieSessionConfiguration configuration =…

Dogukan Evcil
- 313
- 4
- 15
2
votes
2 answers
Sliding window on Drools Fusion rules
I'm making an application where data from a Virtual Machine that relate to CPU usage, memory usage, disk utilization, etc. are collected via an interval HTTP request every 5 seconds. The data gathered look like this:
timeStamp (long):…

csymvoul
- 677
- 3
- 15
- 30
2
votes
2 answers
drools-fusion not evcting events from working memory when it should
i have the following 2 rules:
rule "Backup Not Succeeded For At Least 3 Days"
@ruleId(1)
when
Node($id : id)
not ( Backup(clientId == $id, $state: state == BackupStateEnum.FINISHED) over window:time( 3d ) from…

radai
- 23,949
- 10
- 71
- 115
2
votes
1 answer
Drool rules using cron expression?
I have one requirement that i want to fire rule only for weekdays.i have some rule like smoke, temperature, motion.can you suggest me how i can make rule as per my requirement.please provide me some example.
Is there any better way to fire rules…

Rahul Pandey
- 605
- 1
- 5
- 17
2
votes
1 answer
How to create Drools rule file for each user using Apache Storm?
We are making Storm application, there we need to create rule file for each user.it is possible or not?

Rahul Pandey
- 605
- 1
- 5
- 17
2
votes
2 answers
could not create constructor :: Kie Workbench
I am using Kie workbench 6.3.0 to create rules. I am trying to run rule in stream mode.
I have created a project in kie-wb and created kie-base in it.
We are using kie server runtime for this.
This is the kmodule code generated:

Pradnya J
- 91
- 1
- 7
2
votes
1 answer
Issues using retract in then condition of a rule
I am trying to write a rule to detect if a given event has occurred for 'n' number times in last 'm' duration of time.
I am using drools version 5.4.Final. I have also tried 5.5.Final with no effect.
I have found that there are a couple of…

Tushar Tarkas
- 1,592
- 13
- 25
2
votes
1 answer
Test Event expiration in Drools Fusion CEP
Ciao, I have tested in several ways, but I'm still unable to test and verify the Event expiration mechanism in Drools Fusion, so I'm looking for some little guidance, please?
I've read the manual and I'm interested in this feature:
In other words,…

tarilabs
- 2,178
- 2
- 15
- 23
2
votes
2 answers
access drools session clock from accumulation function or rule code
i'm trying to write an accumulation function that needs to be aware of the current time.
i could obviously use System.currentTimeMillis(), but for testing im running a drools session with a pseudo-clock and would like to be able to test this…

radai
- 23,949
- 10
- 71
- 115
1
vote
1 answer
How to handle delayed events with Drools Fusion
Event A then Event B. If there is no Event B after 5 min of A then trigger rule.
when
time1:Event() from entry-point xx
not (Event(this after[ 0,5m ] time1) from entry-point xx)
then
...
end
For realtime events that works fine, but in…

javadude
- 1,763
- 1
- 19
- 38
1
vote
0 answers
How to set data for nested object's fields in drools decision table
I want to set data for nested object in drools decision table. I have a Java model class SalesMobilityApiModel in which I have a nested object of type AddressProofModel. The AddressProofModel class has few fields, such as String documentCategory,…

Rashmi Patil
- 13
- 3
1
vote
5 answers
Horizontal Scalability with Drools
Knowing that drools work with in memory data. Is there a way to distribute horizontally on different drools instances to enhance performance when performing CRUD operations on rules, fact types, etc? I guess the instances would need to be on sync…

RIGOBERTO B.
- 23
- 2
1
vote
0 answers
How to design an template in Drools in order to pass list and map as an argument to generate the rules dynamically?
I have a list and an map in json format and before passing the those to template in order to generate the rules I convert them into the java and then compile them using the ObjectDataCompiler in order to generate the rules.
JSON
{
"tags": [
…

Harsha
- 86
- 5
1
vote
0 answers
How to pass and read the vlaues from map in Drools DRT template?
I am trying to pass a map in DRT template of the of the drools like this
TEMPLATE
template "another map"
rule "test map_2"
no-loop true
dialect "java"
when
namedmap:Map(map:"${namedTags}")
review:FactNew(
…

Harsha
- 86
- 5
1
vote
1 answer
While reading Drools Drt with some given Parameter, The condition part in rule gets disappear for the Empty String or null values
While running Drools DRT with some empty values gives an error.
This is the template which we have used....
rule "Rule1_@{row.rowNumber}"
salience @{salience}
dialect "java"
when
variable:Fact(Context == "@{context}")
then
…

Samyak
- 81
- 8