Hi Drools Rulers,
I am new to drools and I’ve configured a rule with the following:
------------------------------------------------------------------------
rule "my rules"
ruleflow-group "nike"
no-loop true
when
$nikeShoe : NikeShoe() from shoeManager.getNikeShoe(xxxx)
then
xxxx
end
------------------------------------------------------------------------
When I run rule group “Adidas”, the getNikeShoe() query in group “nike” is executed. Although I did NOT invoke the rule group “nike” when executing rules, the shoeManager. getNikeShoe () call is always executed. Seems somehow the condition is pre-checked by drools somehow. Anyone could please share what I did wrong? I definitely don’t want to invoke group “nike” when executing group “Adidas”.
Thanks in advance!
Alan M.