I have figured it out that this rule is the reason for the out of memory
error. Basically it counts the number of months assigned to a resource per
requirement and it should be a minimum of 3 months.
rule "minimumMonths"
when
$requirement : Requirement()
$employee: Employee()
$totalAssigned: Number(intValue > 0 && < 3) from accumulate(
$assignment : Assignment (
employee!= null,
employee== $employee,
requirement == $requirement
), count($assignment)
)
then
scoreHolder.addHardConstraintMatch(kcontext, 0, -1);
end
--
View this message in context:
http://drools.46999.n3.nabble.com/Java-Heap-Space-Out-of-Memory-tp4026825...
Sent from the Drools: User forum mailing list archive at
Nabble.com.