Questions tagged [drools-fusion]

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

164 questions
0
votes
1 answer

Drools Fusion. Update @timestamp. Why can't I retrieve the correct value from timestamp field?

I declared the event by .drl syntax: declare Event @role(event) @timestamp(time) time : long end So I can get the "time" field that's set automatically. In my java rule I want to retrieve "time": when Event($tsmp:time) then …
padibro
  • 1,324
  • 10
  • 56
  • 95
0
votes
1 answer

Cron timer testing with psuedo clock in Drools Fusion?

I am trying to test the firing of a rule based on a cron timer using the pseudo clock in Drools Fusion 5.5. I want the rule to fire everyday at 1am: rule "CALCULATING DATE FOR NEXT DAY" timer (cron:00 00 01 * * ?) no-loop when $summary:…
i850eggs
  • 55
  • 6
0
votes
1 answer

Use drools to find the percentage change in average temperature over an hour

I have a use case where I have a stream of room temperatures coming up. The stream has reading of temperature for every minute. I want to calculate the average temperature per hour and raise an alarm if the average temperature for this hour exceeds…
0
votes
1 answer

Drools Rule structure

Hi i am new to Drools fusion and I have been developing some sample rules to understand working of drools fusion. I need some help in understanding drools My rule: rule "Sample Rule" when $t:Test (num == 10) from entry-point Stream …
Sachin Verma
  • 3,712
  • 10
  • 41
  • 74
0
votes
1 answer

Drools Fusion: Rule with temporal operator "after" not triggering after update to 6.0.0.CR4

I've integrated Drools into my event-driven project recently. I'm using the following maven artifacts there: kie-internal, kie-api, drools-core, drools-compiler. All of them had a version 6.0.0.Beta3 Here's my code: try { KnowledgeBase…
Vlad
  • 117
  • 1
  • 1
  • 9
0
votes
1 answer

Event Base Drools Rule

I am new to Drools Fusion, I am unable to create a rule for below condition Read the server log file with (Date, Error message etc...) If found Event Type: ERROR with Event Message: "Memory Error" have to trigger some event (as of now…
Mohankumar D
  • 63
  • 1
  • 2
  • 8
0
votes
1 answer

Issue with Drools Fusion "during" temporal operator

I've started to work with Drools Fusion and faced strange issue with during temporal operator. For a reason I cannot make it too work though for example after operator is working fine. Here is declaration of my event - it just contains an intervals…
Sergio Kozlov
  • 535
  • 1
  • 4
  • 13
0
votes
1 answer

Drools Temporal Rules

I'm newbie to the Drools. Here i'm trying to generate a notification if a process is running for longer than some time - let's say 5 minutes. To achieve the above I'm writing the following code in DRL file. But it doesn't seem to be working. drl…
0
votes
1 answer

Writing drl in generic way

My requirement is that i need to count the order requests from the same customer without hardcoding the customerid in the rule. The reason being In case if I have 1000 customers then I need to write 1000 rules for the same. To avoid this I need…
user1668653
  • 237
  • 2
  • 3
  • 9
0
votes
1 answer

three consecutive objects in drools

i have been trying to find if there are three objects of same class in Drools Fusion.I have a POJO named Tick as below public class Tick { CrossOverPrice crossoverprice; CrossOverType crossovertype; public Tick(CrossOverPrice…
maddy
  • 109
  • 4
  • 13
0
votes
1 answer

How to recognize and verify a simple sequence of events with drools fusion

I'm unable to find the best way (the drools fusion way actually) to count "A" events between "B" events (STREAM mode). An example of sequence could be: B A A A B A A B A... A use case could be verify a sequence validity i.e there is always 3 "A"…
jineff
  • 472
  • 4
  • 16
-1
votes
1 answer

Cannot find kbase, either it is not exist or there are multiple default kbases in kmodule.xml

I am using Kie workbench 6.3.0 to create rules. I am using kie server runtime. I have created project in kie-wb and added kie-base, packages and have set to stream mode from Project Editor. Following is the kmodule.xml generated:
Pradnya J
  • 91
  • 1
  • 7
-1
votes
1 answer

Drools Timer based rule fires multiple times after restart

I have a scenario where I want to use rules purely as a scheduled job for invoking other services. I am using a solution similar to Answer 2 on this. So I have rule 1 which looks like: rule "ServiceCheck" timer ( int: 3m 5m ) no-loop…
Manny
  • 3
  • 3
1 2 3
10
11