You don&#39;t need an separate BRL Fragment for each line in the DRL. Why not define a BRL Fragment for this:-<br><br>data : RuleData( controlCode == 123, term = &lt;TemplateKey&gt; )<br><br>You&#39;ll then have a column in which to enter the value of &quot;term&quot;. If the cell the fragment will not be included in the rule.<br>
<br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 16 August 2012 03:08, jasonxzhong <span dir="ltr">&lt;<a href="mailto:jason.zhong@ellucian.com" target="_blank">jason.zhong@ellucian.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am trying to develop a guide decision table so that each row will<br>
transform to the following rule<br>
<br>
rule &quot;...&quot;<br>
when<br>
      data : RuleData(<br>
         controlCode == 123,<br>
         term = &quot;&lt;literal from cell&gt;&quot;<br>
         )<br>
then<br>
      TermTicket t = new TimeTicket();<br>
      t.setTerm(data.getTerm());<br>
      t.setSomerValue(...)<br>
      insert(t);<br>
end<br>
<br>
The condition that tests RuleData.controlCode attribute does not use any<br>
value from the table itself but just a constant &quot;123&quot; so I added a BRL<br>
fragment &quot;controlCode equals to 123&quot;. This seems to work as long as this<br>
column is not hidden and the checkbox in the corresponding column is checked<br>
(by default the box is not checked therefore the condition is not added to<br>
the rule). Since the condition does not require any user provided value it<br>
is rather odd that it needs to be displayed in the table and requires user<br>
to check the box to enable it. Is there a way to get around this or this is<br>
a limitation of the guided decision table?<br>
<br>
Similarly in the same rule I want to set the value of TermTicket.term to a<br>
value taken from the RuleData, not from the table itself. Again I can get<br>
this to work by using a free form DRL. However this also requires the column<br>
itself to be shown in the table and the user needs to check the checkbox in<br>
that column to enable this action.<br>
<br>
Any suggestions?<br>
<br>
Thanks, Jason<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Hiding-a-column-in-web-guided-decision-table-disables-a-condition-or-action-tp4019169.html" target="_blank">http://drools.46999.n3.nabble.com/Hiding-a-column-in-web-guided-decision-table-disables-a-condition-or-action-tp4019169.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>