[rules-users] Optaplanner rules error

Geoffrey De Smet ge0ffrey.spam at gmail.com
Fri Sep 20 10:56:08 EDT 2013


On 20-09-13 16:19, ns wrote:
> I'm unable to figure it out. At the top of the drl file I have:
>
> package be.comp.permanenties.solver; //permanentiesScoreRules.drl
>      dialect "java"
> import org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScoreHolder;
>
> import be.comp.permanenties.domain.DayOfWeek;
> import be.comp.permanenties.domain.Employee;
> import be.comp.permanenties.domain.ShiftAssignment;
> import be.comp.permanenties.domain.Roster;
> import be.comp.permanenties.domain.RosterInfo;
> import be.comp.permanenties.domain.Shift;
> import be.comp.permanenties.domain.ShiftDate;
> import be.comp.permanenties.domain.ShiftType;
> import be.comp.permanenties.domain.ShiftTypeSkillRequirement;
> import be.comp.permanenties.domain.Skill;
> import be.comp.permanenties.domain.request.DayOffRequest;
> import be.comp.permanenties.domain.request.DayOnRequest;
> import be.comp.permanenties.domain.request.ShiftOffRequest;
> import be.comp.permanenties.domain.request.ShiftOnRequest;
> import be.comp.permanenties.domain.solver.EmployeeAssignmentTotal;
(1)
> import be.comp.permanenties.domain.solver.EmployeeWorkSequence;
>
> The EmployeeAssignmentTotal sits in the right package and the top of the
> file is:
>
> package be.comp.permanenties.solver;
Shouldn't that be instead:
   package be.comp.permanenties.domain.solver;
because of (1)?

>
> import java.io.Serializable;
>
> import org.apache.commons.lang.builder.CompareToBuilder;
> import org.apache.commons.lang.builder.EqualsBuilder;
> import org.apache.commons.lang.builder.HashCodeBuilder;
> import be.comp.permanenties.domain.Employee;
>
> public class EmployeeAssignmentTotal implements
> Comparable<EmployeeAssignmentTotal>, Serializable {
>
>
> For now the project is just a copy of the nurse rostering problem with some
> omissions of things I don't think I will need. I am now trying to get
> something fairly simple up and running. The program will replace a manual
> employee planning tool in Excel. But the planning tool they use now doesn't
> look at holidays or days off. The aim of the program is to do everything
> automatically and integrate it with the hour registration program. But as
> you can see I am only beginning. Deadline is the end of this year.
>
> Kind regards,
>
> Nick
>
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/rules-users-Optaplanner-rules-error-tp4026047p4026061.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list