Sascha,
Unfortunately, there is no internal representation (neither on the
canonical model, nor the execution model) for comments. Comments in
source files are filtered out by the lexer:
C_STYLE_SINGLE_LINE_COMMENT
: '//' (~('\r'|'\n'))* (EOL|EOF)
{ $channel=HIDDEN; }
;
MULTI_LINE_COMMENT
: '/*' (options{greedy=false;} : .)* '*/'
{ $channel=HIDDEN; }
;
So as of 6.2, unless you generate the DRL using a string template
framework, it is not possible to create comments.
Alternatively, as you already figured, to document/link rules and
types you can use custom annotations.
Edson
> --
> You received this message because you are subscribed to the Google Groups
> "Drools Usage" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
drools-usage...@googlegroups.com.
> To post to this group, send email to
drools...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/drools-usage/01869cfa-97fc-4bf1-8067-5ad18ed0463e%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
Edson Tirelli
Principal Software Engineer
Red Hat Business Systems and Intelligence Group