Re: [rules-users] Benefits of pluggable operators

2013-05-24 Thread Wolfgang Laun
I'm inclined to think that a well-implemented operator can provide a little bit more "cushioning" for the rule author. In the given example, key.startsWith("abc") would throw an NPE if key is null. The operator silently handle this case and simply return false. Another thing is that operators can

Re: [rules-users] Benefits of pluggable operators

2013-05-24 Thread Edson Tirelli
Thomas, Pluggable operators were developed much before we supported free form expressions, but nowadays they can be used for the same purpose. It is then a matter of preference basically. You can still develop and use pluggable operators if that makes your rule more readable by hiding comple

[rules-users] Benefits of pluggable operators

2013-05-24 Thread Thomas Grayson
What are the benefits of using pluggable operators (implementations of org.drools.base.evaluators.EvaluatorDefinition such str, matches, or before) versus simply making an equivalent function call? I've read the Creating pluggable operators