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).
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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users