[rules-dev] feature request: undo-then
Mark Proctor
mproctor at codehaus.org
Wed Feb 18 20:58:55 EST 2009
Greg Barton wrote:
> --- On Wed, 2/18/09, Geoffrey De Smet <ge0ffrey.spam at gmail.com> wrote:
>
>
>> The current workarounds [to undo-then] are clunky:
>> - Writing an negative (opposite) rule isn't efficient:
>> it means declaring the rule twice effectively. Also the
>> negative rule is usually using lots of or's and
>> not's which isn't fast.
>>
>
> This would be made easier by...drum roll please...the else clause! :)
>
yes we want OPSJ style else statements, edson has an idea on how to do
that, just a matter of time :(
> Now, if there was the else clause plus undo-then/closures you could probably write an entire complex ruleset in one rule. Might as well just use perl, then. :P
>
heh, that's true you would have potentially encapsulated 4 possible
executions in a single rule.
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20090219/585ad73f/attachment.html
More information about the rules-dev
mailing list