Hi,

I have the following rule and roomCurriculumCode and currCode are of type
String. If the check is equals "insertLogical" never happens, but if the the
codes are not equal as expressed below the "insertLogical" is performed even
if the strings are equal. What am I missing here

    rule "RoomAndCurriculum"
    when
    $room : Room($roomCode : code, $roomCapacity : capacity,
$roomCurriculumCode : curriculumCode);
    $curriculum : Curriculum($currCode : code);
    eval($roomCurriculumCode != $currCode)
    then
    insertLogical(new IntConstraintOccurrence("RoomAndCurriculum",
ConstraintType.NEGATIVE_HARD, 1, $roomCapacity, $room, $currCode,
$roomCurriculumCode));
    end

-jd
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to