[DROOLS-296] rewrite or constraints when necessary