I now ported this rule from Rules DSL to Jython:
Although Rules DSL is a powerful language, I prefer the Jython approach.