Hi,<div><br></div><div>I am pocing/learning drools and I am trying to implements Compound Value Restrictions using &#39;In&#39; in a decision table.</div><div><br></div><div>I can do this in a rule like</div><div><br></div>
<div><div>rule &quot;CoverType Example&quot;</div><div>when</div><div>    $risk : Data( coverType in (&quot;A&quot;,&quot;B&quot;, &quot;C&quot;, &quot;D&quot;))</div><div>then</div><div>    result.add(&quot;CoverType was one of A, B C or D&quot;);</div>
<div>end</div></div><div><br></div><div>I can also implement this in a decision table in a long winded fashion</div><div>Condition, Action</div><div>Data,        result</div><div>coverType, add(&quot;$param&quot;)</div><div>
<meta charset="utf-8"><div>A,              CoverType was one of A, B C or D</div></div><div><meta charset="utf-8"><div>B,              CoverType was one of A, B C or D</div></div><div><meta charset="utf-8"><div>C,              CoverType was one of A, B C or D</div>
</div><div><meta charset="utf-8"><div>D,              CoverType was one of A, B C or D</div></div><div><br></div><div>Is there a compact way to do this using a Compound Value Restriction using in?</div><div>Something like:</div>
<div><br></div><div><meta charset="utf-8"><div>Condition, Action</div><div>Data,        result</div><div>coverType in, add(&quot;$param&quot;)</div><div><div>&quot;A,B,C,D&quot;,              CoverType was one of A, B C or D</div>
</div><div></div></div><meta charset="utf-8"><div><br></div><div>What goes in the script part &quot;coverType in&quot;?</div><meta charset="utf-8"><div><br></div><div>The number of items in the list can be variable, so don&#39;t want to write something that has $1, $2, $3, $4</div>
<div><br></div><div>Thanks</div><div>David</div>