|
Re: [drools-user] Doubts in Bound Variables: msg#00148java.drools.user
Niyas, I tested a very resembling rule, and it works fine. I don't know what is the problem, as your code seems to be correct.The error isn't for sure the way we name the declarations. rule "EvalWithFunction_1" when $e:Employee($name:employeeName == "Fred") eval($e.getExtraHours() >= 8) eval($e.getCurrencyName() == "EURO") then System.out.println($e.getEmployeeName()+" has worked at least 8 extra hours"); end Check in working memory for facts that should activate the rule, and be sure that there are any rules in your drl file that are retracting those facts before your particular rule "Credti Accept" will fire. Oana. Niyas <niya sahmed@xxxxxxxxx> wrote: Why in the second case it's not printing anything? I am not asked __________________________________________________
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [drools-user] Three Important Doubts, nicolae oana |
|---|---|
| Next by Date: | Re: [drools-user] Doubts in Bound Variables, Edson Tirelli |
| Previous by Thread: | Re: [drools-user] Doubts in Bound Variables, Niyas |
| Next by Thread: | Re: [drools-user] Doubts in Bound Variables, Edson Tirelli |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |