The behavior of binding of a boolean unary expression in executable model is different from the one in plain drl.
Concretely, when executing a rule (*1) that uses binding of a boolean unary expression in executable model and in plain drl respectively, the binding works as also a constraint in executable model while it does only binding in plain drl. The behavior between both should be the same.
(*1)
package com.example.reproducer dialect "java" rule "rule19aT" when $bus: Bus( $flag : Boolean.valueOf("TRUE") ) then System.out.println("***** Action of rule19aT: $flag = " + $flag); end rule "rule19aF" when $bus: Bus( $flag : Boolean.valueOf("FALSE") ) then System.out.println("***** Action of rule19aF: $flag = " + $flag); end
- is related to
-
DROOLS-6612 Binding variable of non-boolean unary expression fails to build when connected with && in executable-model
- Closed