I just have started using Drools (version 5.1.0) so please bear with me in case this question was already answered.
I have a java.util.List object which contains objects of complex type A, with A as:
class A {
String name;
String Value;}
The list as well as its elements are in the working memory of the Drools engine. Is there an easy way to fire a rule only if the name and value of an element in the list are matching specific values?
Currently, i am using a self-defined function inside the Drools rule, which iterates over the list and returns true if there is an element that matches the specification, however i wonder whether this is the most efficient and easiest use.