Questions tagged [drools-fusion]

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

164 questions
8
votes
2 answers

Retrieving facts of a specific type from working memory

Instead of retrieving all facts i need to retrieve specific type of facts from working memory. i learnt that i can retrieve all the facts from working memory as…
user1668653
  • 237
  • 2
  • 3
  • 9
6
votes
1 answer

Does Drools Fusion have a concept of "now"?

I'm trying to write a rule that delays firing until, at least, 15 minutes have passed since the last firing. However, the temporal operators in Drools Fusion only allow reasoning about two events in relation to each other and not one event in…
Francisco Canedo
  • 1,980
  • 2
  • 13
  • 16
5
votes
1 answer

Drools Fusion support for persistent, long running events

I was considering using Drools Fusion to implement the following exemplary rules: if customer bought two same products within a year, she gets third for free for spending more than 200 USD in at most three consecutive transactions customer gets a…
Tomasz Nurkiewicz
  • 334,321
  • 69
  • 703
  • 674
5
votes
1 answer

Drools Fusion and Java EE

What are the best practices for using Drools Fusion on a Web/Enterprise Application? Do you know of any useful document? I've looked through the examples on JBoss…
Spaffo
  • 621
  • 2
  • 8
  • 12
5
votes
4 answers

Persisting Drools Knowledge Session

I am working for a school district, and we are planning on using Drools to implement the following types for rules for the student population of the districts constituent schools: If a student has 3 absences during a year their attendance metric…
4
votes
0 answers

Improving Drools Fusion startup performance

I'm running Drools 7.10.0-FINAL Fusion on a linux(openembedded) box (single core 600MHz, 512MB RAM, Java SE Embedded 1.8) and looking for the ways I can improve Drools startup time. It's around ~32s now, would be good to halve it. I have a single…
d_z
  • 688
  • 3
  • 11
4
votes
1 answer

Temporal operator fails after serialization in Drools 6.5.0 and Drools 7.0.0

i am trying to implement serialization in drools. My problem is that drools fusion operators after, before,... are not serialized as expected. My rules are working correctly if I don't use serialization and deserialization. I attached a…
cb89
  • 161
  • 13
4
votes
0 answers

Does Kie execution server (Or Drools server)support High Availability?

I'm newbie to Drools. For powerful drools fusion or timer based rule, most of them are stateful. So, an obvious issue is coming: if the server of the stateful session is down, is that possible to recover the session by Kie execution server? For…
capcom923
  • 638
  • 5
  • 15
4
votes
2 answers

Compare dates in drools

My rule file as below, import com.springapp.mvc.model.Person; dialect "java" rule "4" when $person:Person(((date > "20-Jan-2015") && (date < "20-Dec-2015")) && (call_count >= "299")) then System.out.println("Beep"); end I…
Hasitha
  • 558
  • 1
  • 12
  • 26
3
votes
1 answer

How to edit and update the Drools rule file?

My project uses drools expert means (DRL) file. In the rules file, if the user wants to delete and update the rules, what should be done? Rule file: package com.sample; import com.sample.Tuplebean; import com.sample.DroolsBolt; dialect…
Rahul Pandey
  • 605
  • 1
  • 5
  • 17
3
votes
2 answers

How to reset the StatefulKnowledgeSession?

I am using the StatefulKnowledgeSession for the firing the all my alert rules. In the prepare part i am not getting the how to reset the session. Hence, it would create overriding of rules again?
Rahul Pandey
  • 605
  • 1
  • 5
  • 17
3
votes
1 answer

Integrating Drools with JBossESB

In recent weeks I've been researching Drools amongst other CEP/Rule Engines and I believe I would like to use Drools. I also have an JBossESB which is responsible for routing of messages between different services. Unless I am totally missing the…
El Guapo
  • 5,581
  • 7
  • 54
  • 82
3
votes
0 answers

Drools Fusion-Help Needed

import com.poc.events.*; declare InstigatorEvent @role(event) end declare SomeOtherEvent @role(event) end rule "Rule_1" when $instigator_1:InstigatorEvent(userId=="test_244903") not(SomeOtherEvent(prop=="completedSomething",this after[0s,30s]…
Avinash
  • 347
  • 1
  • 4
  • 15
3
votes
0 answers

Drools Event Expiry Issue

we are currently using drools 5.1 version.we would like to expire events after sometime.we are trying with the following approach. declare Abc @role( event ) @expires( 300s ) end and we are using accumulate function inside our rules.And…
user1668653
  • 237
  • 2
  • 3
  • 9
2
votes
1 answer

Apache Camel and Drools Fusion Integration

Has anyone tried integrating Apache Camel with Drools Fusion or just Drools. Following is my use case. Get data from an external service using REST. Filter the data (using rules defined in Drools.) The data from the external service could also…
Soumya Simanta
  • 11,523
  • 24
  • 106
  • 161
1
2 3
10 11