This would appear a (near) perfect use-case for &quot;Templates&quot;.<br><br>Have a read of the documentation and examples, it should become quite clear thereafter :)<br><br><div class="gmail_quote">On 19 May 2011 15:46, matiasklein <span dir="ltr">&lt;<a href="mailto:mklein@porticosys.com">mklein@porticosys.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
I have a DSLR that reads:<br>
<br>
There is an event with a code of &quot;93000&quot;<br>
<br>
This translates via DSL to:<br>
<br>
[when]There is an event with a code {Code}=$event : Event(Code == {Code})<br>
<br>
Unfortunately, I have to build many rules that are exactly the same as this,<br>
but with different qualifying codes (i.e. rule #1 qualifies with code 9300,<br>
93001, 93002, etc., but rule #2 qualifies with 5001, 5002, 5003, etc.).<br>
<br>
I would like users of the system to be able to maintain the list of<br>
qualifying codes in a spreadsheet.  However, I&#39;m not sure how to use an<br>
enumeration loaded via a spreadsheet.<br>
<br>
Does anyone have a recommendation on how to achieve this?<br>
<br>
Thanks so much!<br>
<br>
Cheers,<br>
<br>
Matias<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/DSL-Enumeration-Decision-Table-tp2961667p2961667.html" target="_blank">http://drools.46999.n3.nabble.com/DSL-Enumeration-Decision-Table-tp2961667p2961667.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>