Rules that cumulate on consequence
by lansyj
hi folks
We are working on a requirement that requires us to have multiple rules that
could fire for a given input and for all the rules that fire, we would want
to cumulate the consequence to reach the final consequence.
As an example, if we want to identify the credit score for a person, based
on his gender you might want to assign/increment/decrement the score, then
based on nationality, and so on.
So, considering the long list of such criteria, having rules that cover all
scenarios and are still mutually exclusive isnt a scalable solution. Could
you please advice on how this could be achieved.
We run Drools 5.1.1 and Guvnor; rules are made using the guided editor with
DSLs.
Awaiting your support,
Best Regards
-lj
--
View this message in context: http://drools.46999.n3.nabble.com/Rules-that-cumulate-on-consequence-tp35...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 4 months
How to import Declarative model from Guvnor to eclispe ?
by Manohar Kokkula
Hi to All,
I am new to Guvnor.
I want to import Declarative model from Guvnor into Eclipse. How can I
declare it in
eclipse?.
I used API's from BRMS userguide, but i am unable to get it.
Please guide me in proper way.
Thanks,
Manohar Kokkula
Mailto: manohar.kokkula(a)tcs.com
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
14 years, 4 months
Rules called with null references?
by Robert Crawford
I have this rule:
rule "Defrost: Turned On"
when
$reading : SwitchReading( switchOn == true ) from entry-point
"ReadingsStream"
not SwitchReading (this.circuit == $reading.circuit, this after $reading
) from entry-point "ReadingsStream"
not DefrostSwitchOn(this.circuit == $reading.circuit)
then
LOG.info("Defrost switch turned on by reading '" + $reading + "'.");
insert(new DefrostSwitchOn($reading));
end
SwitchReading is an event; DefrostSwitchOn is a POJO fact.
Multiple times I've gotten exceptions where this rule's RHS is called with a
null. The ConsequenceExceptionHandler is supposed to list the facts the RHS
was called with, but it's getting an empty list.
Now, I know my system as it currently stands can take a LONG time between
receiving an event and executing the consequence, primarily when it first
starts and is loading its previous known state. It's entirely believable to
me that the event will have expired before the rule's RHS is called. But
shouldn't the event still be referenced by the Activation?
--
View this message in context: http://drools.46999.n3.nabble.com/Rules-called-with-null-references-tp347...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 4 months