[rules-users] Java Heap Space Out of Memory in Drools

newbie dspecialist18 at yahoo.com
Tue Nov 19 19:26:35 EST 2013


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-tp4026825p4026834.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list