All other

(Conditional) Named consequences in Drools 5.5

Blog post image

Until now Drools rules have been always expressed in the form: rule “name”when LHS (conditional element)then RHS (consequence)end Sometimes this could be somewhat limiting and leads to verbose and difficult to be maintained repetitions like in the following example: rule “Give 10% discount to customers older than 60″when $customer : Customer( age > 60 )thenRead more →

Small efforts, big improvements

Blog post image

Some days ago, following some suggestions of Mark Proctor, I spent just a few hours trying to reduce both the memory footprint and the time requested to create an instance of the WorkingMemory, one of the most used core class of Drools. What I basically did was to lazy initialize all the non-strictly necessary dataRead more →