VOOZH about

URL: https://www.javacodegeeks.com/2016/10/drools-6-5-0-final-available.html

⇱ Drools 6.5.0.Final is available - Java Code Geeks


The latests and greatest Drools 6.5.0.Final release is now available for download. This is an incremental release on our previous build that focus on a few key improvements to round up the 6.x series.

You can find more details, downloads and documentation here:

Read below some of the highlights of the release.

You can also check the new releases for:

Happy drooling.

What’s new?

Core Engine

Configurable ThreadFactory

Some runtime environments (like for example Google App Engine) don’t allow to directly create new Threads. For this reason it is now possible to plug your own ThreadFactory implementation by setting the system property
drools.threadFactory with its class name.

Use of any expressions as input for a query

It is now possible to use as input argument for a query both the field of a fact as in:

query contains(String $s, String $c)
 $s := String( this.contains( $c ) )
end

rule PersonNamesWithA when
 $p : Person()
 contains( $p.name, "a"; )
then
end

Update with modified properties

Property reactivity has been introduced to avoid unwanted and useless (re)evaluations and allow the engine to react only to modification of properties actually constrained or bound inside of a given pattern. However this feature is automatically available only for modifications performed inside the consequence of a rule. Conversely a programmatic update is unaware of the object’s properties that have been changed, so it is unable of using this feature.

To overcome this limitation it is now possible to optionally specify in an update statement the names of the properties that have been changed in the modified object as in the following example:

Person me = new Person("me", 40);
FactHandle meHandle = ksession.insert( me );

me.setAge(41);
me.setAddress("California Avenue");
ksession.update( meHandle, me, "age", "address" );

Monitoring framework improvements

A new type of MBean has been introduced in order to provide monitoring of the KieContainers, and the JMX MBeans hierarchical structure have been revisited to reflect the relationship with the related MBeans of the KieBases. The JMX objectnaming has been normalized to reflect the terminology used in the Kie API.A new type of MBean has been introduced in order to provide monitoring for Stateless KieSession, which was not available in previous releases.

Drools Workbench

Guided Rule Editor : Support formulae in composite field constraints

Composite field constraints now support use of formulae. When adding constraints to a Pattern the “Multiple Field Constraint” selection (“All of (and)” and “Any of (or)”) supports use of formulae in addition to expressions.

👁 composite-field-constraint-formulae1

Authoring – Project Editor – Reimport button

The “Reimport” button invalidates all cached dependencies, in order to handle scenarios where a specific dependency was updated without having its version modified.

Reference: Drools 6.5.0.Final is available from our JCG partner Edson Tirelli at the Drools & jBPM blog.
Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy

Thank you!

We will contact you soon.

👁 Photo of Edson Tirelli
Edson Tirelli
October 26th, 2016Last Updated: May 31st, 2017
0 128 2 minutes read
Subscribe

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Back to top button
Close
wpDiscuz