Questions tagged [drools-fusion]

Drools Fusion (event processing/temporal reasoning) – provides for complex event processing (Source: Wikipedia)

164 questions
1
vote
0 answers

Drools automatically Deleting Events from KieSession

I have a drools kiesession which has multiple entry points (20-50). I am facing an issue where at some point all the events inside that entry point are getting deleted automatically and the Fact count in the entry point is showing as 1. I want…
Prog_G
  • 1,539
  • 1
  • 8
  • 22
1
vote
0 answers

How to use multiple decision tables (excel file) with Spring Drools with same fact

Based on distance and night surcharge, I have rules to get taxi fare. Decision table excel sheet : rule_fare in com.rules package Facts : class TaxiRide {private Boolean isNightSurcharge;private Integer distanceInMile;} class Fare {private Integer…
G10
  • 118
  • 1
  • 8
1
vote
0 answers

Drools: Sliding window:time is selecting even elapsed data

I wanted to check Anomalous events in a window of say 3 days. I have a following drools code which outputs all events and not restricting to just 3 days. Same problem happens even if I put 1 day instead of 3. I do fireAllRules after each insert. If…
manu
  • 223
  • 1
  • 2
  • 12
1
vote
1 answer

Could Drools Fusion be integrated with kafka streams?

I am looking for Kafka Streams complex event processing (CEP). I did not find Kafka streams native CEP. However, I found drools fusion. I have a few questions? Could Drools Fusion be integrated with Kafka streams? What's the advantage of such…
1
vote
1 answer

How to return the value from Cosequence of drl file to java

If rule matches then i am executing the java function in consequence of drl and i want that result of function in consequence to be returned back to the function which calls to execute the drl.
abhi.nalavade
  • 196
  • 3
  • 10
1
vote
1 answer

Is there a way to call query from a rule in DRL file?

I have a requirement to chain a window rule to a window rule. My use case is : If the occurrence of temperature > 50 in 5 min window is greater than 10 then find the max(average) of the temperature in that window frame or any other chain rule on…
Prog_G
  • 1,539
  • 1
  • 8
  • 22
1
vote
1 answer

Call java method from Drools rules

I want to create a Drools rule that says that if the CPU usage from the data I gather using a HTTP request is over a specific threshold (e.g. 20%) then call a function that lays on the class Netdata which are also passed to Drools Fusion. So what I…
csymvoul
  • 677
  • 3
  • 15
  • 30
1
vote
0 answers

Drools Windowing is Executing other rules after when the window time is over

I am using Drool Fusion to execute windowing rules. The following is my Test class: public class Test { int count; public int getCount() { return count; } public void setCount(int count) { this.count = count; …
Prog_G
  • 1,539
  • 1
  • 8
  • 22
1
vote
0 answers

Drools windowing triggered more then once

I want to trigger the rule if there are two events of same type happened in the same place over the window of 10 seconds. I have the following rule: rule "trigger if there were more then 2 events of same type in same place" when $event1:…
marknorkin
  • 3,904
  • 10
  • 46
  • 82
1
vote
0 answers

Poor Drools performance when retracting facts

We are doing scalability testing on Drools 7.5 with a single rule defined: ... declare RuleEvent @role(event) @timestamp(timestamp) entityId : String metrics : Map timestamp : long end declare window AlarmWindow RuleEvent()…
1
vote
1 answer

Drools LHS check against optional fact

I need to write a rule in Drools 6.5 that checks for the existence of an event of type A. There is a second class named B which has a field date. While checking for existence of an event A, if at least one event of type B exists, A must happen after…
fzwd
  • 61
  • 10
1
vote
1 answer

Drools Engine Inferred Expiration

I'm working on a project which needs to process a large number of events per second. The project uses Drools 6.5 running in stream mode. The data is fed to the engine as "event" objects. Due to the large number of events that need to be processed,…
fzwd
  • 61
  • 10
1
vote
1 answer

Sequencing the facts for rules processing

We have a scenario where facts need to be processed in insertion sequence or as per date associated with the fact. To be precise, I need to add the transactions till the sum reaches a threshold. The moment the threshold is reached, I need to ignore…
1
vote
1 answer

Drools Complex Rule Advice on Accumulating Facts

I need some advice on how to write a rule for the following case. First, here are my facts: SessionClock($now : new Date(getCurrentTime())) ClickEvent( $userId : userId, $productId : productId, $event : "FAVORITE" / "REMOVE_FAVORITE" ) Product($id…
Hasan Can Saral
  • 2,950
  • 5
  • 43
  • 78
1
vote
0 answers

@expires vs. retract and Memory Management

1) I have setup a small program inserting a event to my key session running in STREAM mode. I have created a timer rule causing halt() after 5 seconds. Running this program with fireUntilHalt() and printing kieSession.getFactCount() shows me that…
jastjoe
  • 11
  • 5
1 2
3
10 11