Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

How to create a timer/delay in Thingsboard rule chain?

I have a device that outputs the following telemetry onto thingsboard: pressure (number), flow (number), and flushing(0 or 1). Below is the semi-pseudo code that I want to implement through the rule ...
gurveer's user avatar
-1 votes
0 answers
23 views

Runtime Drool Creation from JSON. Modify and update the existing of rules at runtime. Evaluate against a json input

I have to create Drool from JSON at runtime. Modify the existing set of rules at runtime based on condition passed in JSON. we are using react condition builder to build the rule definition. Looking ...
sube singh's user avatar
0 votes
1 answer
33 views

Issue with global variable update in Drools

`I am new to drools, need help Java File: kieSession.insert(csaResponseRootDTO); kieSession.fireAllRules(); System.out.println(kieSession.getGlobal("count")); ==> This is printing as null ...
contacttosoumya83's user avatar
0 votes
2 answers
49 views

How to achieve a loop in drools rule engine?

I have written a dynamic rules for a straightforward conditions like. an example object; public class Student { private String name; private String surName; private Integer age; private Address ...
Thomson Ignesious's user avatar
0 votes
0 answers
30 views

SAP Hybris Promotion module: Value is not an instance of string

I am trying to create a custom promotion condition in sap hybris and I am getting an exception "Value is not instance of String" from the class DefaultRuleParameterValueMapperStrategy, I ...
Md Sakib's user avatar
-1 votes
1 answer
36 views

Problem with Java RuleBook engine implementation

I'm trying to make a simple implementation of RuleBook engine with the follwing class: package some package; import com.deliveredtechnologies.rulebook.FactMap; import com.deliveredtechnologies....
Kalin Damyanov's user avatar
-1 votes
1 answer
180 views

How to implement multiple option based output using "Microsoft Rules Engine"?

I am using "Microsoft Rules Engine" (https://microsoft.github.io/RulesEngine/). I want to know how to implement multiple option based output for each rule to implement a questionnaire based ...
maX's user avatar
  • 732
0 votes
1 answer
26 views

What happens when a CodeEffect rule's .Net source object member(s) change?

Just wondering how this scenario is handled by the rules engine and UI. So if a rule I've created references a property or method 'A', and that property or method changes to 'B' (or perhaps method ...
Brett Rossier's user avatar
1 vote
1 answer
136 views

Rules engine has slow down or takes longer to compile while firing rules [Drools]

I've a separate Java spring boot service as a rules engine. Which has controller and service to set focus on agenda groups as user or other service preferred. In my case i have 500 plus rules and 30 ...
Madhan's user avatar
  • 51
0 votes
0 answers
42 views

Drools named consequence rule giving different outputs for the same input

My web application has an endpoint /automatic which takes a POST request, converts the request body into entity and fire the given rule against that entity. @Data @NoArgsConstructor @...
Vishesh Mukherjee's user avatar
0 votes
1 answer
39 views

Is Drools 8.x JSR94 compliant?

Drools 8.x distribution doesn't contain jar with name jsr94. With Drools 7.x distribution, drools-jsr94.jar is provided. The 7.x documentation mentions that the jar drools-jsr94.jar is the JSR-94 ...
itsajitsharma's user avatar
0 votes
0 answers
22 views

Unable to use External-MQTT Node of Edge's rule engine to send MQTT data as a thing to AWS IoT

Component Rule Engine Description I want to use 'External - mqtt' Node in rules engine of Thingsboard Edge to send data as an AWS Thing to IoT Core/Greengrass. I have uploaded certificates (Server ...
Ankush Rana's user avatar
0 votes
1 answer
27 views

XmlSchema Compatibility

I'm using v4.1.8.8 I have a number of individual rules xml documents that I want to combine into a rule set. After combining them I need to do some modification so it would be a lot easier of all of ...
David Jessee's user avatar
0 votes
0 answers
33 views

Calling .ToString() on editor not returning enum name

I'm trying to call .ToString() on the editor to get the friendly text for a rule. Either I'm not configured correctly or perhaps there's a bug, hence why I'm reaching out. When calling .ToString(), ...
user3295022's user avatar
0 votes
1 answer
23 views

IBM ODM create a rule

I need to create a rule. I have this precondition: Student is adult (older than 18) Student's first treatment date is present and is in the past if the dateOfBirth of Input is before <...
M_IT_D's user avatar
  • 63
0 votes
2 answers
37 views

Wrong answer when checking array of objects where the condition built from a group with "or" between objects, checked with other group (with "and")

I'm trying to run a condition on an array of elements, where each element contains multiple params. I want to evaluate a dynamic condition (as in input from the user) where I want to check if: (($...
sami610's user avatar
  • 89
0 votes
0 answers
55 views

Waiting for event after launching task C#

I am trying to start a process and wait for an event in what I wanted to be a step by step rule engine. I am stuck with the process and I have tried several things but always revolving the async/await ...
Joe's user avatar
  • 1
0 votes
1 answer
13 views

Why is the MVC RuleEditor is too slow loading data sources

We have implemented an instance of MVC RuleEditor on the server side The MVC version is loading data is slower than ASP RuleEditor loading. Both controls utilize the same data sources and renders the ...
James R Wilfong's user avatar
1 vote
1 answer
678 views

DROOLS DRL Rule Unit with RuleUnitData declaration isn't working

I have embedded DROOLS 8 engine in a simple standalone app for testing. So far I was able to instantiate a KIE session, load and build a DRL file from disk. If the DRL is a simple rule files, it works ...
nicola.p's user avatar
0 votes
0 answers
18 views

How to get Rule with when(String) and then(Action) in easy-rules?

In a programmatic way with a fluent API: Rule weatherRule = new RuleBuilder() .name("weather rule") .description("if it rains then take an umbrella") .when(...
http8086's user avatar
  • 1,596
0 votes
1 answer
69 views

CodeEffects Rule Engine - Template for ReactJS - how to add alphanumeric validation to built-in text field input?

I want to add input format validation(allow only alphanumerics) to text input present in the official CodeEffects Rule Engine template for React. Does this template supports this customization. If yes,...
Muhammad Zubair's user avatar
1 vote
0 answers
65 views

How to do bulk search and replace changes in your entire codebase based on rules?

It happened I need to add (or change, or change order) a new function "FunctionB()" into an existing code base (php files, ie. text files) based on rule like the following: in the main ...
Brian Wexter's user avatar
1 vote
0 answers
173 views

Shopware 6: Using rules programmatically to filter orders

I am currently trying to create a plugin which uses the Rule Builder functionality to select which orders will be processed by my plugin. The rule can be selected in the plugin settings and will be ...
Marco Stastny's user avatar
0 votes
0 answers
76 views

[Drools 7.x]Dynamic rules Update at runtime(rules stored in Amazon S3)

I am using drools 7, and currently we are loading all the rules and creating rule engine during service start-up. However there is a requirement of updating the rule engine whenever rules are updated. ...
Megha C's user avatar
3 votes
1 answer
233 views

Why does the Drools Rules Engine only run a rule with an empty conditional once?

I have a very basic drools rules engine set up with only rule inserted: rule "Hello World" when then System.out.println("Hello World!"); end I am running ...
tarcin's user avatar
  • 629
0 votes
0 answers
61 views

Issue with Experta-based Recommendation System - Python3

I am currently working on a recommendation system using the Experta library in Python. The system is designed to recommend laptops based on usage patterns and price preferences. However, I am facing ...
Mohamed Habib Jawadi's user avatar
0 votes
0 answers
11 views

Is it possible to access declared types from java when using the ruleunit api?

in the legacy java drool "API" it was possible to gain access to the types declared within the rule files via the KieBase.getFactType(...) method. Is such thing possible with the new ...
alex's user avatar
  • 1
-1 votes
1 answer
192 views

Determine the appropriate design pattern in Java/Spring

We have a method which contains a complex business logic to evaluate a lot of conditions and by the end this method should return an object of type Rule. The method is implemented using a lot of if ...
A.S's user avatar
  • 289
0 votes
0 answers
50 views

Drools Stateless Kie Session returning stale value from Global Variables

We have a use case where we need two consecutive drools rule evaluations, where we are creating new StatelessKieSession every time including new container instance, we are storing the result in a ...
arpit115's user avatar
0 votes
0 answers
79 views

Rules executing multiple times- unable to disable the rule

Currently i started using the latest drools engine (9.44.0.Final ) in our project . Previouly i used 7.x version. In my previous version i used the custom java method to enable and disable the rule....
Tamil Prabhu's user avatar
0 votes
0 answers
22 views

On a rule-based system, how you deal with lack of facts?

I'm studying in college about rule-based system, and I want to know if I have the rules of my system, but the facts are incomplete what I can do? For example: Rules: r1: f1 and f2 then f3 r2: f3 then ...
Dishonored's user avatar
0 votes
1 answer
652 views

Multiple property Select in microsoft RulesEngine expression

I am researching some rule engines and I came across Microsoft RulesEngine: https://microsoft.github.io/RulesEngine/. It looks verry promising, because I get a lot of flexibility in the rules and the ...
TheMaskDeveloper's user avatar
2 votes
3 answers
352 views

Thingsboard - is there a way to use the rule engine to calculate percentile values?

We want to calculate the percentile values from a timeseries of data from a group of devices. Each device transmits data every 10 seconds. We average over a period of 5 minutes. For each 5 minute ...
John McDermott's user avatar
0 votes
2 answers
262 views

Drools decision table - function call for condition param, so that the condition will be evaluated by comparing the values coming from the function

In my drools decision table, I want to keep a getter or function call in the condition cell, so that the condition will be evaluated over the value coming from that getter or function. i.e for the $...
Ruhul Hussain's user avatar
0 votes
0 answers
77 views

How does DRL key "insert" in rule conditions works with RuleUnit in Drools?

I am currently in the migration process from drools 7 to drools 8. We have classic rules that do stuff like : flow : init task --- main task rule init flow init task if evaluation() then insert ...
Emmanuel B.'s user avatar
0 votes
1 answer
330 views

How to skip remaining rules when a specific grule get executed and move to next iteration

golang Grule just like continue statement in the for loop, I want to skip the remaining rules and start the next cycle. https://github.com/hyperjumptech/grule-rule-engine tried using retract but it ...
Rohit Sharma's user avatar
0 votes
0 answers
58 views

Does Rule Engine Supports NOT IN to check if the element is not present in container or List of Elements in Json Rule Expressions in .Net?

{"Rules": [{"Expression": " element NOT IN RestrictedElementList ", "RuleName": "MyRule", "SuccessEvent": "01"}], "...
Dev24's user avatar
  • 1
0 votes
0 answers
57 views

Composite desing pattern with UI tree editor MVC

Have any of you guys ever created an MVC RuleEngine UI editor with composite pattern in .NET Core? How did you do that? I struggling with rendering that Tree and making it bindable to model for ...
Zamash's user avatar
  • 13
0 votes
0 answers
183 views

Execution default-build of goal org.kie:kie-maven-plugin:8.44.0.Final:build failed

I'm trying to build my drool project ( 8.44.0.Final and jdk-11.0.18.10-hotspot) its getting failed .When i try to in eclipse its working fine . But When build its throwing error. I have enabled the ...
Tamil Prabhu's user avatar
0 votes
1 answer
165 views

How to serialize kiebase in drools-engine 8.43.0.Final

Since the SessionsAwareKnowledgeBase implements KieBase which can't be serializable. Usecase: Need to serialize the kiebase and store into the cache (redis). At runtime i have to deserialize the ...
Tamil Prabhu's user avatar
0 votes
1 answer
40 views

how to find which drool rule's condition was triggered when a rule is fired?

Assuming a drool rule is - rule "Argus - Environmental Alert_Argus" agenda-group "Argus" when ruletemplate:RuleTemplate(ParameterName=="Temperatur",...
zainab's user avatar
  • 39
-1 votes
1 answer
209 views

Software design aspect - Rule driven vs configuration driven design

I want ask this question more on design perspective rather than any implementation. Lets, start with an example of a routing engine (or anything else) that can be configured using some rule engine or ...
Abhishek Chatterjee's user avatar
0 votes
1 answer
366 views

Rule Engine design with multiple predicates

I am trying to implement Rule engine desing pattern in my use case but not able to fit the pieces in the right place. RuleEngine is where all rules are validated for a transaction before making it ...
Dan's user avatar
  • 731
0 votes
0 answers
196 views

durable-rules loading ruleset from json file

I came across durable-rules (python) https://github.com/jruizgit/rules rule engine framework. I manage to write a dataset defined in Python code into a JSON file but cannot read it and execute it. Is ...
ninja's user avatar
  • 13
0 votes
1 answer
612 views

Best approach for updating rules in a deployed Kogito application

I have recently migrated from a Drools application to a Kogito application, and I'm facing challenges in updating/creating rules on a deployed application. In the Drools application, I used to create ...
Loure's user avatar
  • 5
0 votes
1 answer
220 views

How to fix a non-firing rule in drools

I am trying to learn drools. Following is the code – and the rule is not firing though fireAllRules is called . Product class package com.abc.main; public class Product { private String ...
LCJ's user avatar
  • 22.6k
0 votes
2 answers
302 views

Define drools conditions in configuration

I am trying to define the conditions of my Drools rules in configuration (as a JSON) so that they can be easily parsed. For example, one of my Drools rules currently looks like this: rule "...
user2963365's user avatar
0 votes
0 answers
230 views

OutofMemory Error while trying to deploy Drools Business-Central through Wildfly

I am getting this error while trying to deploy Drools Business Central using Wildfly. The Error says: Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "...
Padmesh Naik's user avatar
0 votes
0 answers
402 views

NRule: understanding sample

I haven't done much of C# for last few years and recently I was trying to use NRules for rule engine implementation. While going through the sample Context context = default; LastSeat lastSeat ...
Sakary's user avatar
  • 5
0 votes
1 answer
128 views

How do we update facts in clara rules? (clojure)

(ns clara.rules.test (:require [clara.rules :refer :all])) (defrecord Users [#^ints user-ids]) (defrecord UserData [user-id dob age] (defrule rule-1 [?ud <- UserData (> age 20)] [?u <- ...
xyj's user avatar
  • 1

1
2 3 4 5
20