[rules-users] Writing really short rules

Michael Anstis michael.anstis at gmail.com
Wed Apr 11 15:00:27 EDT 2012


What about a rule template?

You can also create rules from a CSV based decision table - or if your more
adventurous write your own Listener (see the dtable docs).

On 11 April 2012 19:57, Adam Warski <adam at warski.org> wrote:

> Hello,
>
> I have some near-tabular data which I would like to write down as rules.
> There about 100 rows. Using a custom DSL, the shortest form I now have for
> each entry is:
>
> rule "..."
> when some condition with data from row
> then always the same action
> end
>
> so 4 lines.
>
> Is it possible to somehow write it in one line? If I simply try to do that,
> the parser complains (as I have a .dslr file).
>
> Alternatively, is it possible to write down a decision table not in excel,
> but using plain text? As this would work for me as well.
>
> Thanks,
> Adam
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Writing-really-short-rules-tp3903485p3903485.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120411/75a6764f/attachment.html 


More information about the rules-users mailing list