Hi,

I'm new to using Drools and its probably just a problem with me
understanding how this works, but I've tried everything i can think of, so I
come to you in hope for some help!

I have a set of rules which modify an object in the RHS and another set of
Rules that should be fireing after the modification of the object.

Rule modifying the Object:

rule "Wenn der BMI des Patienten >= 18.5 und < 25 ist, dann gehört der
Patient der Kategorie 'Normalgewicht' an und hat ein 'durchschnittliches'
Risiko für Begleiterkrankungen des Übergewichts"
        when
                MessdatenVonPatient($patient : patient && 
(getMessdaten().getBmi() >=
18.5) && (getMessdaten().getBmi() < 25))
                $krankheitsbildVonPatient : KrankheitsbildVonPatient(patient == 
$patient
&& $krankheitsbild : krankheitsbild)
        then
                modify($krankheitsbild){setAdipositasGrad("Normalgewicht"),
                                                                
setRisikoBegleiterkrankungGrad(1)
                                                                }
end


Rule that should fire after the modification:

rule "Wenn Patient der Kategorie 'Normalgewicht' angehoert, dann werden
folgende Maßnahmen vorgeschlagen"
        when
                KrankheitsbildVonPatient($patient : patient, 
krankheitsbild.adipositasGrad
== "Normalgewicht")
        then
                System.out.println("Some Text");
end


Also I have encountered problems (application freezes) when trying to modify
the "$krankheitsbildVonPatient" object in the RHS. And I still don't
understand why it did freeze and why modifying "$krankheitsbild" does not.

Heres my datamodel if needed: 
http://drools.46999.n3.nabble.com/file/n4019463/dataModel.drl dataModel.drl 


Best Regards,

wichtl




--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-not-being-reconsidered-after-modify-tp4019463.html
Sent from the Drools: User forum mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to