Questions tagged [drools-fusion]

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

164 questions
1
vote
1 answer

Drools Fusion Conversion to long not supported from java.time.ZonedDateTime

I am trying to use the Drools Fusion temporal operators before, after, and coincides but I keep getting the error: Conversion to long not supported from java.time.ZonedDateTime In my objects, the times I am comparing are ZonedDateTime. Does Drools…
1
vote
1 answer

Getting the latest event satisfying a condition

Is there any way that I can get the latest event which satisfies a certain predicate ? For example, if I write this rule: rule 1: when myObject: MyObject(id == "id1" && name == "name1" && type == "type1") then …
Anmol Singh Jaggi
  • 8,376
  • 4
  • 36
  • 77
1
vote
0 answers

Drools - stop rule consequence execution

We're using drools and allow our users to enter their own drools rule conditions and consequences. However, to make the whole drools stuff more reliable, we need to make sure no infinite loops or other blocking things block the whole system. For…
Kay Jugel
  • 73
  • 11
1
vote
1 answer

Drools rules for different users

I recently started programming with Drools Fusion and I have a smart wearable that sends pedometer and heart rate data to my laptop. I then process this data with using the drools rule language. But suppose I have multiple smart wearables with each…
Tim
  • 445
  • 5
  • 19
1
vote
0 answers

how to fireRules in Drools (with infinite loop in programme )

I have a function(MonitorLOg) that contains an infinite loop; it's necessary because I want to monitor a file and do an action when there is a modification. However, myRules in Drools doesn't want to start("WS is updated" don't appear). Any…
Ahmed
  • 41
  • 4
1
vote
1 answer

Exception handling in drools statefullSession

I'm not sure what is the correct way of handling exceptions in RHS of rules. I've a statefullSession (drools version 5.5) that keeps firing until halt gets called i.e. Runnable firingTask = new Runnable() { public void run() { …
user1761377
  • 73
  • 1
  • 6
1
vote
1 answer

org.drools.core.common.DefaultFactHandle cannot be cast to org.drools.core.common.EventFactHandle

I want to use drools do some alarm.bellow is the rule .but when i fire the kieSession. drools throws an excetption. who can tell me why? rule: import java.util.Map /n declare Map @role(event) end rule "sliding window time map" when …
doctor CUI
  • 11
  • 2
  • 5
1
vote
1 answer

What is the relationship between @timestamp and "over window:time"?

I'm using Drools 6.2.0.Final and I need to process a set of event using window:time. Each event has a date's field. public class Event { private Long id; private Date date; ... And in my drl: declare…
Ansemo Abadía
  • 488
  • 3
  • 10
1
vote
1 answer

Drools Fusion sliding time window for following condition

With Drools fusion, I want to do some alarm for the cpu_idle of a computer. the condition is: I would receive a record from the machine I monitored per 10s; if the cpu_idle<10 , drools should open a time window maybe 10mim, and begin to count of…
mrcui
  • 11
  • 1
1
vote
0 answers

Deserializing a Spark Dstream

I am trying to apply Drools Engine (Drools Fusion) over streaming data using Spark Streaming. But I am unable to deserialize a variable of type JavaDStreamto fire rules over it. It is showing comparision error between JavaDstream and Interger.…
1
vote
1 answer

Spatial Events in Drools Fusion & WSO2 Complex Event Processor/Siddhi

I’ve been looking into the Drools Fusion Complex Event Processing component and the WSO2 Complex Event Processor/Siddhi and I was wondering if one/both of these components are capable to handle spatial events for 2D and 3D events. I’m interested…
Dennis
  • 13
  • 4
1
vote
1 answer

General Drools Questionx

For the last few months my company has been using a product from a company called Informatica (previously AgentLogic) called RulePoint. This product has proven itself very easy to use with a well-developed and easy-to-use SDK for customization. The…
El Guapo
  • 5,581
  • 7
  • 54
  • 82
1
vote
1 answer

Multiple end for a rule in Drools

I am completely new to Drools and just exploring. So far I had been using a single rule and withing which we use if conditions just like java. Now I had to use complex rules where I need to use multiple if and else chain but to end it when one in…
Naveen Raj
  • 801
  • 11
  • 26
1
vote
1 answer

Count number of facts in sliding window with Drools Fusion

I need to write a rule that counts the number of Facts I've received in my stream over the last 10 seconds if they match a certain criteria. So, for instance, if 2 black cars pass through an intersection in the last 10 seconds I want to alert…
El Guapo
  • 5,581
  • 7
  • 54
  • 82
1
vote
0 answers

Getting Error : SEVERE: Unknown KieSession name: in drool 6.0.0

I compiled the drool project using ant. I tried to run it with java -cp .:../../lib/* com.myproject.sample.MomAlertApp I am getting an error: SEVERE: Unknown KieSession name: MomAppKs Exception in thread "main" java.lang.NullPointerException at…
Mohyt
  • 990
  • 2
  • 10
  • 26