The problem is RULE2 does not create a Customer pattern as you do not specify at least one constraint.<br><br><span style="font-family:courier new,monospace"> CONDITION CONDITION ACTION</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> Customer c Tariff t </span><span style="font-family:courier new,monospace">customer.setOffer($param)</span><span style="font-family:courier new,monospace"><br>
name value</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">
</span><span style="font-family:courier new,monospace">RULE1 "pepe" 5 "lot of</span><span style="font-family:courier new,monospace"> offers"</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">
RULE2 100 "lot of </span><span style="font-family:courier new,monospace">offers"</span><br style="font-family:courier new,monospace"><br><div class="gmail_quote">On 16 March 2012 12:26, Zeta <span dir="ltr"><<a href="mailto:zoraidahidalgo@gmail.com">zoraidahidalgo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
my spreedsheet received 4 facts. I need all of them to check conditions but<br>
not all of them are used in all rules. There are some rules that modify a<br>
fact which is not used in any of the conditions and thus, it is not<br>
"declared" on the left side of the rule.<br>
<br>
Let me show you an example:<br>
<br>
CONDITION CONDITION ACTION<br>
Customer c Tariff t<br>
name value<br>
customer.setOffer($param)<br>
<br>
RULE1 "pepe" 5 "lot of<br>
offers"<br>
RULE2 100 "lot of<br>
offers"<br>
<br>
When I try to compile this, I get a compilation error:<br>
<br>
[ERROR] | 2012-03-14 17:21:30,238 |<br>
es....ruleengine.impl.RuleEngineUpgradeImpl[RuleEngineUpgradeImpl.java:117]<br>
| Rule Compilation error customer cannot be resolved<br>
customer cannot be resolved<br>
<br>
Any suggestion please?<br>
Thanks,<br>
Zoraida.-<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Doubt-when-modifying-facts-on-an-action-tp3831681p3831681.html" target="_blank">http://drools.46999.n3.nabble.com/Doubt-when-modifying-facts-on-an-action-tp3831681p3831681.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>