- When there is a type mismatch (e.g. String vs Integer) in a constraint, sometimes the condition matches, sometimes not. What's the difference?
rule "R1" when MyFactA( $i : intData ) $f : MyFactB( strData == $i ) then System.out.println( "R1 fired : $f = " + $f ); end rule "R2" when $f : MyFactB( strData == 20 ) then System.out.println( "R2 fired : $f = " + $f ); end
- Red Hat Decision Manager (RHDM)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.