<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:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">Hi,</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">I have the following Drools rule in Optaplanner:</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">rule &quot;oneShiftPerDay&quot;</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;&nbsp;&nbsp; when</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $leftAssignment : ShiftAssignment($leftId : id, $employee : employee, $shiftDate : shiftDate, employee != null)</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $rightAssignment : ShiftAssignment(employee == $employee, shiftDate == $shiftDate, id &gt; $leftId)</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;&nbsp;&nbsp; then</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scoreHolder.addHardConstraintMatch(kcontext, -1);</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">end</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">But when I run the solver I get the following error:</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">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:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">Error importing : 'be.comp.permanenties.domain.solver.EmployeeAssignmentTotal'</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">Error importing : 'be.comp.permanenties.domain.solver.EmployeeWorkSequence'</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">Rule Compilation error : [Rule name='oneShiftPerDay']</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">How can I solve this error? Thanks.
</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">Kind regards,</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Trebuchet MS&quot;,&quot;sans-serif&quot;">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>