<html><body><div>Hi folks,</div><div><br></div><div>I'm trying to create a DSL (to drive a Guvnor guided editor), for which a rule could be written as:</div><div style="padding-left: 24px; ">Given a cucumber</div><div style="padding-left: 24px; ">- containing one or more worm holes</div><div style="padding-left: 24px; ">- or with a curvature greater than 10mm per 10 cm length</div><div style="padding-left: 24px; ">- or with a hue of less than 90 degrees</div><div style="padding-left: 24px; ">- or with a hue of greater than 150 degrees</div><div style="padding-left: 24px; ">Do not put that cucumber on the supermarket shelf</div><div style="padding-left: 24px; "><br></div><div style="">(note: I'm actually developing a banking risk management system looking at different types of counterparty ratings, rather than a fruit&amp;veg quality control system, but hopefully the above example is more readable!)</div><div style=""><br></div><div style="">Is there a decent metaphor that could be used by a business user in Guvnor to manage such rules in one place? Or is it likely to be necessary to create multiple rules?
</div><div style=""><br></div><div>As far as I understand, every condition added to a rule through such DSLRs adds itself to the filter. i.e. They are AND rather than OR.</div><div><br></div><div>The other metaphor I could think of is the&nbsp;decision table as a neat interface for generating multiple rules, but that seems to be geared towards creating rules based on multiple values of a single attribute rather than multiple conditions.</div><div><br></div><div>I'm trying to keep the user interface as simple as possible, so any thoughts would be appreciated.</div><div><br></div><div>Cheers,</div><div><br></div><div>Steve</div><div><br></div></body></html>