[rules-users] Need help with Decision Table Conditions

Tihomir Surdilovic tsurdilo at redhat.com
Mon Jan 10 08:33:18 EST 2011


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 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/b443d6b0/attachment.html 


More information about the rules-users mailing list