What about a rule template?<br><br>You can also create rules from a CSV based decision table - or if your more adventurous write your own Listener (see the dtable docs).<br><br><div class="gmail_quote">On 11 April 2012 19:57, Adam Warski <span dir="ltr">&lt;<a href="mailto:adam@warski.org">adam@warski.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I have some near-tabular data which I would like to write down as rules.<br>
There about 100 rows. Using a custom DSL, the shortest form I now have for<br>
each entry is:<br>
<br>
rule &quot;...&quot;<br>
when some condition with data from row<br>
then always the same action<br>
end<br>
<br>
so 4 lines.<br>
<br>
Is it possible to somehow write it in one line? If I simply try to do that,<br>
the parser complains (as I have a .dslr file).<br>
<br>
Alternatively, is it possible to write down a decision table not in excel,<br>
but using plain text? As this would work for me as well.<br>
<br>
Thanks,<br>
Adam<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Writing-really-short-rules-tp3903485p3903485.html" target="_blank">http://drools.46999.n3.nabble.com/Writing-really-short-rules-tp3903485p3903485.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>
</blockquote></div><br>