No, sorry. The I is a workaround, but people should be cautiioned not to
rely on it for the future.
-W
2011/1/10 Tihomir Surdilovic <tsurdilo(a)redhat.com>
Hi Wolfgang, good points, thus I asked for a Jira so we can add
proper
support for it.
If you know of a better workaround with whats currently available let us
know.
Thanks.
On 1/10/11 10:13 AM, Wolfgang Laun wrote:
I would not use I / DESCRIPTION for these reasons:
- it's not parameterized, and I think you don't want to repeat the
@Meta(...) for every rule, you just want the argument
- you can use only one I column, since the 2nd one silently overwrites
the 1st one, so you'll have to squeeze multiple @s into one cell
- it is an undocumented feature, and the name would suggest that it was
intended for providing a comment
Adding a proper metadata column type is simple, given what is available
from other column types.
-W
2011/1/10 Tihomir Surdilovic <tsurdilo(a)redhat.com>
> Hi Jason,
> for fact types and attributes you should be able to reuse the Functions
> keyword in the RuleSet section of your sheet, for example:
>
> -----------------------------------------------
> | Functions | declare Person @author( Bob ) ......... end |
> -----------------------------------------------
>
> For rule attributes you can reuse the "I" keyword as the cell header and
> add the attributes, for example:
>
> -------------------------------------------------
> |RuleTable Sample|
> | |
> -------------------------------------------------
> | Condition | I |
> Action |
> -------------------------------------------------
> | $p : Person | |
> |
> -------------------------------------------------
> | name==$param| |
> |
> -------------------------------------------------
> | SomeName | @author( Bob ) | System.out..... |
> -------------------------------------------------
>
> Neither are optimal, but just workarounds. If you raise a Jira, I can put
> on todo list.
> Hope this helps.
>
> Thanks.
> Tihomir
>
> On 1/7/11 9:35 PM, Jason Mihalick wrote:
>
> Tihomir, Do you know if decision tables support
metadata<http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/droo...
>
> ------------------------------
> View this message in context: Re: Need help with Decision Table
>
Conditions<http://drools-java-rules-engine.46999.n3.nabble.com/Need-he...
> Sent from the Drools - User mailing list
archive<http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Use...
Nabble.com.
>
>
> _______________________________________________
> rules-users mailing
listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
_______________________________________________
rules-users mailing
listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users