[rules-users] Does Guvnor Support Traits?

Michael Anstis michael.anstis at gmail.com
Fri Jun 22 18:32:33 EDT 2012


Thanks Davide, your comments are much appreciated.

sent on the move

On 22 Jun 2012 22:52, "Davide Sottara" <dsotty at gmail.com> wrote:

> "Experimental" means it has not been tested thoroughly yet, so it might be
> subject to improvements and even some language changes. Also, it means that
> the docs are really lacking! :) (shame on me!).
>
> I have never tried to use traits in guvnor yet, but my first impression is
> that you don't really need
> anything special. All the type declarations are managed with annotations,
> and the rules are transparent.
>
> 1) Consider that
> "declare trait X"
> can also be written
> "declare X @kind(trait)"
>
> 2) "donning" is a RHS action, you'd just need to write a "free" action
>
> 3) Trait types are compiled into interfaces, so you can just use them in
> the
> LHS exactly in the same way you'd use a declared class - i.e. to write
> patterns!.
>
> Feel free to contact me for feedback/bugs/requests/questions and let me
> know
> if you want to get involved!
> Best
> Davide
> dsotty at gmail.com
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Does-Guvnor-Support-Traits-tp4018176p4018193.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/20120622/1189c938/attachment.html 


More information about the rules-users mailing list