The Decision Table parser only adds the Fact type to the generated rule if it has at least one constraint.<br><br>There is a workaround (although I&#39;ve not tried it):-<br><br><span style="font-family:courier new,monospace">CONDITION         | CONDITION         | </span><span style="font-family:courier new,monospace">CONDITION         </span><span style="font-family:courier new,monospace"> | ACTION</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">--------------------------------------------------------------------------------------<br>Customer                              | </span><span style="font-family:courier new,monospace">Tariff           </span><span style="font-family:courier new,monospace"> |<br>
</span><span style="font-family:courier new,monospace">--------------------------------------------------------------------------------------<br>
</span><span style="font-family:courier new,monospace">this != $param    | name              | value             | </span><span style="font-family:courier new,monospace">customer.setOffer($param)</span><span style="font-family:courier new,monospace"><br>
</span><span style="font-family:courier new,monospace">--------------------------------------------------------------------------------------<br>
</span><span style="font-family:courier new,monospace">null              | &quot;pepe&quot;            | 5                 | &quot;lot of offers&quot;</span><br><span style="font-family:courier new,monospace">null              |                   | 100               | &quot;lot of offers&quot;</span><br>

<span style="font-family:courier new,monospace"></span><br>It basically adds an additional constraint that can never be false.<br><br><div class="gmail_quote">On 16 March 2012 13:00, Zeta <span dir="ltr">&lt;<a href="mailto:zoraidahidalgo@gmail.com">zoraidahidalgo@gmail.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>
thanks for your responses. You right but, why is it? I mean, rules are<br>
receiving two facts(one Customer instance and one Tariff instance) and I<br>
need to set the customer offer value even when I am not checking any<br>
condition on the customer. Is it not possible? Is there any workaround?<br>
<br>
Thanks.-<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Doubt-when-modifying-facts-on-an-action-tp3831681p3831775.html" target="_blank">http://drools.46999.n3.nabble.com/Doubt-when-modifying-facts-on-an-action-tp3831681p3831775.html</a><br>

<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br>