[rules-users] Need help with Decision Table Conditions
Wolfgang Laun
wolfgang.laun at gmail.com
Mon Jan 10 10:13:17 EST 2011
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 at 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/drools-expert/html_single/index.html#d0e3368>?
>
> ------------------------------
> View this message in context: Re: Need help with Decision Table Conditions<http://drools-java-rules-engine.46999.n3.nabble.com/Need-help-with-Decision-Table-Conditions-tp2195003p2215160.html>
> Sent from the Drools - User mailing list archive<http://drools-java-rules-engine.46999.n3.nabble.com/Drools-User-f47000.html>at Nabble.com.
>
>
> _______________________________________________
> rules-users mailing listrules-users at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> _______________________________________________
> 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/20110110/766df0c1/attachment.html
More information about the rules-users
mailing list