[rules-users] Doubt when modifying facts on an action
Michael Anstis
michael.anstis at gmail.com
Fri Mar 16 09:31:13 EDT 2012
The Decision Table parser only adds the Fact type to the generated rule if
it has at least one constraint.
There is a workaround (although I've not tried it):-
CONDITION | CONDITION | CONDITION | ACTION
--------------------------------------------------------------------------------------
Customer | Tariff |
--------------------------------------------------------------------------------------
this != $param | name | value |
customer.setOffer($param)
--------------------------------------------------------------------------------------
null | "pepe" | 5 | "lot of offers"
null | | 100 | "lot of offers"
It basically adds an additional constraint that can never be false.
On 16 March 2012 13:00, Zeta <zoraidahidalgo at gmail.com> wrote:
> Hi,
>
> thanks for your responses. You right but, why is it? I mean, rules are
> receiving two facts(one Customer instance and one Tariff instance) and I
> need to set the customer offer value even when I am not checking any
> condition on the customer. Is it not possible? Is there any workaround?
>
> Thanks.-
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Doubt-when-modifying-facts-on-an-action-tp3831681p3831775.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/c30d594b/attachment.html
More information about the rules-users
mailing list