<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:"Trebuchet MS"}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.E-mailStijl17
        {font-family:"Trebuchet MS","sans-serif";
        color:windowtext}
.MsoChpDefault
        {}
@page WordSection1
        {margin:70.85pt 70.85pt 70.85pt 70.85pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="NL-BE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif"">Hi,</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> </span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif"">I have the following Drools rule in Optaplanner:</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> </span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif"">rule "oneShiftPerDay"</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> when</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> $leftAssignment : ShiftAssignment($leftId : id, $employee : employee, $shiftDate : shiftDate, employee != null)</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> $rightAssignment : ShiftAssignment(employee == $employee, shiftDate == $shiftDate, id > $leftId)</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> then</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> scoreHolder.addHardConstraintMatch(kcontext, -1);</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif"">end</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> </span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif"">But when I run the solver I get the following error:</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> </span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif"">09:02:46.128 [main] ERROR o.d.c.k.b.impl.AbstractKieModule - Unable to build KieBaseModel:defaultKieBase</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif"">Error importing : 'be.comp.permanenties.domain.solver.EmployeeAssignmentTotal'</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif"">Error importing : 'be.comp.permanenties.domain.solver.EmployeeWorkSequence'</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif"">Rule Compilation error : [Rule name='oneShiftPerDay']</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> be/comp/permanenties/solver/Rule_oneShiftPerDay544009415.java (2:220) : Only a type can be imported. be.comp.permanenties.domain.solver.EmployeeWorkSequence
resolves to a package</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> be/comp/permanenties/solver/Rule_oneShiftPerDay544009415.java (2:978) : Only a type can be imported. be.comp.permanenties.domain.solver.EmployeeAssignmentTotal
resolves to a package</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> </span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif"">How can I solve this error? Thanks.
</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> </span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif"">Kind regards,</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif""> </span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Trebuchet MS","sans-serif"">Nick</span></p>
</div>
<br>
<a href="http://www.ocmwturnhout.be"><img src="http://www.ocmwturnhout.be/_uploads/ocmw.turnhout.be/Afbeeldingen/werkenbijocmwturnhout.jpg" width="480" height="107" alt="http://www.ocmwturnhout.be">
</a>
<p style="font-size:9px; font-family:'Trebuchet MS'"><br>
Dit bericht is onderworpen aan de bepalingen van onze <a href="http://www.ocmwturnhout.be/nl/content/2436">
disclaimer</a> </p>
</body>
</html>