[rules-users] Score curruption exception in drools-planner-5.4.0.CR1

Nurlan nurlan.rakhimzhanov at gmail.com
Sat May 12 11:51:15 EDT 2012


*someRuleId* = "wxGroupChildClassInSamePeriodWithDiffLessons"
*somePlanningEntity* = Lesson
*/rule/* "wxGroupChildClassInSamePeriodWithDiffLessons"
	*/when/*
		School( type in ("School", "College") )
		$lesson1 : Lesson($id : id, $period : period, $wxGroupName :
course.clazz.wxGroupName, $clazz : course.clazz, $courseName : course.name ) 
		$lesson2 : Lesson(id != $id, period == $period, course.clazz.wxGroupName
== $wxGroupName, course.clazz == $clazz, course.name != $courseName ) 
	*/then/*
		/*insertLogical*/(new
IntConstraintOccurrence("wxGroupChildClassInSamePeriodWithDiffLessons", 
							ConstraintType.NEGATIVE_HARD, 1,
							$lesson1, $lesson2));
*/end/*      

--
View this message in context: http://drools.46999.n3.nabble.com/Score-curruption-exception-in-drools-planner-5-4-0-CR1-tp3981199p3982557.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list