I don&#39;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 &quot;one 4 all&quot;<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>