<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Wolfgang, good points, thus I asked for a Jira so we can add
proper support for it. <br>
If you know of a better workaround with whats currently available
let us know.<br>
<br>
Thanks.<br>
<br>
On 1/10/11 10:13 AM, Wolfgang Laun wrote:
<blockquote
cite="mid:AANLkTimUt+HPfPnJ5Jyp1f4VPwqjjrFVJbN3RP=ggFuN@mail.gmail.com"
type="cite">I would not use I / DESCRIPTION for these reasons:<br>
<ul>
<li>it's not parameterized, and I think you don't want to repeat
the @Meta(...) for every rule, you just want the argument</li>
<li>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</li>
<li>it is an undocumented feature, and the name would suggest
that it was intended for providing a comment</li>
</ul>
Adding a proper metadata column type is simple, given what is
available from other column types.<br>
<br>
-W<br>
<br>
<div class="gmail_quote">2011/1/10 Tihomir Surdilovic <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:tsurdilo@redhat.com">tsurdilo@redhat.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">
<div text="#000000" bgcolor="#ffffff"> Hi Jason, <br>
for fact types and attributes you should be able to reuse
the Functions keyword in the RuleSet section of your sheet,
for example:<br>
<br>
-----------------------------------------------<br>
| Functions | declare Person @author( Bob ) ......... end |<br>
-----------------------------------------------<br>
<br>
For rule attributes you can reuse the "I" keyword as the
cell header and add the attributes, for example:<br>
<br>
-------------------------------------------------<br>
|RuleTable Sample|
| |<br>
-------------------------------------------------<br>
| Condition | I |
Action |<br>
-------------------------------------------------<br>
| $p : Person | |
|<br>
-------------------------------------------------<br>
| name==$param|
| |<br>
-------------------------------------------------<br>
| SomeName | @author( Bob ) |
System.out..... |<br>
-------------------------------------------------<br>
<br>
Neither are optimal, but just workarounds. If you raise a
Jira, I can put on todo list.<br>
Hope this helps.<br>
<br>
Thanks.<br>
Tihomir<br>
<br>
On 1/7/11 9:35 PM, Jason Mihalick wrote:
<blockquote type="cite"> Tihomir, Do you know if decision
tables support <a moz-do-not-send="true"
href="http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e3368"
rel="nofollow" link="external" target="_blank">metadata</a>?
<br>
<hr width="300" align="left"> View this message in
context: <a moz-do-not-send="true"
href="http://drools-java-rules-engine.46999.n3.nabble.com/Need-help-with-Decision-Table-Conditions-tp2195003p2215160.html"
target="_blank">Re: Need help with Decision Table
Conditions</a><br>
Sent from the <a moz-do-not-send="true"
href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-User-f47000.html"
target="_blank">Drools - User mailing list archive</a>
at Nabble.com.<br>
<pre><fieldset></fieldset>
_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</div>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>