All other

Creating pluggable operators

Blog post image

Drools supports creation of pluggable operators. This is a small tutorial on how to create a “str” operator that can be used to compare string values in LHS patterns. The operator adds the ability to write patterns such as: $m : Message( routingValue str[startsWith] “R1” ) $m : Message( routingValue str[endsWith] “R2” ) or $mRead more →