[rules-users] Abstracting Rules using extends

Wolfgang Laun wolfgang.laun at gmail.com
Fri Apr 5 15:06:26 EDT 2013


On 5 April 2013 20:26, Davide Sottara <dsotty at gmail.com> wrote:

>
> 2) The "declare RuleConstant" below does not define global variables,
> but a class for
> which the default constructor would initialize the fields to default
> values.
> You may want to declare an enum instead:
>
> declare enum RuleConstant
>     COUPE( "C" ),
>     SEDAN( "S" );
>
>     code : String
> end
>
> you can then use it as an enum...
>


Which is suitably documented so that idiots like me can read all about
it... where, please?
-W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130405/1d095d41/attachment.html 


More information about the rules-users mailing list