Note: drools version used is 8.29.0 I want to perform a set based operations in drl file using mvel. for e.g. drl file for simple rule match ...
Note: drools version used is 8.29.0 I want to perform a set based operations in drl file using mvel. for e.g. drl file for simple rule match ...
Inside RuleInput there may be either "startDate" or "startingDate" , I need to assign value to $date variable either of the value that exists. Someth ...
When sending and reading xml files through rest api post endpoint in Azure Spring Cloud App with less than 100 rows, the code works, but if one runs m ...
I am using the @foreach Orb notation in MVEL to iterate over a string array. someArrayPartOfAJSONObject = ["Item 1", "Item 2"] But what I'm seeing ...
I'm trying to start a rather trivial example KieContainer kieContainer = KieServices.Factory.get().getKieClasspathContainer(); StatelessKieSession ki ...
I need insert a new value in a exist array with Drools. My example: The error that happend is this: Exception executing consequence for rule "inser ...
I want to verify if given arithmetic expression (a+b) is valid without providing inputs or values. I tried using ExpressionCompiler and MVEL.compileEx ...
I am writing generic MVEL expression for Java objects. So for understanding purpose I am taking one example. I can write MVEL expression If my quer ...
I'm new to drools and looking to try to build different rules based on wait times eg... IF the rule has already triggered. THEN wait 5mins before bei ...
I've produced a rule and it inserts a question in session. If the question is true, it inserts a FLAG and if the question is not true, it deletes the ...
I am using jboss EAP 7.2 and Red Hat Decision Central 7.5.0 I have a custom objects like that I have created new "Model" object that has custom "i ...
I am working on a drool(drl) POC in which I create java beans at run time using reflection. I have set the below property in the config: But I am g ...
I have a requirement to convert rules present in json format in database to code in Java at runtime. For example, The keys in the json will be k ...
How to cast string to integer in MVEL Props['MyInteger'] = java.lang.Integer.ParseInt('//xpath to some string') Other java typing works in my code. ...
I have pre-defined variables in my Java code which I want to use inside an MVEL expression. I don't want to pass a context. How do I read the vari ...
How do you get around PropertyAccessExceptions when the top level key in the hash map may or may not exist? In the example below, if the property exi ...
I would like to write a condition to evaluate if any one of the set values in the facts, meets the condition. This is my rule definition: The inpu ...
In DROOLS, if we are looking to see if the value "foo" is in the list {fu, fa, fe, fi, fo, foo, fum, doodle, dee}, when MVEL parses that into a DRL we ...
I have an xml file which contains conditions to be checked against a metadata JSON and value data JSON input. Sample metadata JSON input can be ...
I have a rule similar to the below one. When I use logger.debug in THEN sections of the rule, it works and not while I use it in WHEN sections. Any ...