[rules-users] Doubt when modifying facts on an action
Michael Anstis
michael.anstis at gmail.com
Fri Mar 16 08:44:24 EDT 2012
The problem is RULE2 does not create a Customer pattern as you do not
specify at least one constraint.
CONDITION CONDITION ACTION
Customer c Tariff t customer.setOffer($param)
name value
RULE1 "pepe" 5 "lot of offers"
RULE2 100 "lot of offers"
On 16 March 2012 12:26, Zeta <zoraidahidalgo at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120316/71c531fb/attachment.html
More information about the rules-users
mailing list