I don't want to confuse you, but have you considered <i>not </i>using templates at all? If you can generate N rules from N objects containing different literals for matching a fact or for updating a fact field, then you can achieve the same thing with a single rule <i>and additional facts containing those literal values.</i><br>
<br>rule "one 4 all"<br>when<br> Service( $name: name, $value: value )<br> $sb: ServiceBean( name == $name, value == $value )<br>then<br> # RiskType ... is what?<br> ...$value..., ...$sb.getType()... <br>
end<br><br>-W<br><br>