For which customer would you like to call setOffer()? If it isn't selected by the condition part you cannot use it in the action part.
-W

On 16 March 2012 13:26, Zeta <zoraidahidalgo@gmail.com> wrote:
Hi all,

my spreedsheet received 4 facts. I need all of them to check conditions but
not all of them are used in all rules. There are some rules that modify a
fact which is not used in any of the conditions and thus, it is not
"declared" on the left side of the rule.

Let me show you an example:

                   CONDITION         CONDITION         ACTION
                   Customer c           Tariff t
                   name                     value
customer.setOffer($param)

RULE1         "pepe"                    5                         "lot of
offers"
RULE2                                      100                      "lot of
offers"

When I try to compile this, I get a compilation error:

[ERROR] | 2012-03-14 17:21:30,238 |
es....ruleengine.impl.RuleEngineUpgradeImpl[RuleEngineUpgradeImpl.java:117]
| Rule Compilation error customer cannot be resolved
customer cannot be resolved

Any suggestion please?
Thanks,
Zoraida.-

--
View this message in context: http://drools.46999.n3.nabble.com/Doubt-when-modifying-facts-on-an-action-tp3831681p3831681.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users