Thanks for your response.

I'have juste test you proposition of method on assigment, and i've got the
same error.
I also test with a simplier rule set :

Juste 1 rule : (and the two for scoreCalculator of course)
rule "notPlannified" 
 when 
            $assigment: Assigment()
then
            insertLogical(new IntConstraintOccurrence("notPlannified",
ConstraintType.NEGATIVE_SOFT, 50, $assigment));

I desactivate the solverScope.calculateScoreFromWorkingMemory(); call in UI,
juste in case.

I check my cloneSolution : i juste clone the assigment object and copy the
score.
equals and hashcode are ok on assigment and move object.
No overrided equals and hashcode on other facts, but since i don't recreate
nor clone them, i think it's unnecessary. (In fact i don't really understand
where hashcode and equals was really necessary since the working memory keep
same instances).



--
View this message in context: 
http://drools.46999.n3.nabble.com/Planner-CachedMoveFactory-drive-to-Corrupted-undo-move-tp3495070p3496696.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