<div dir="ltr">Can you share with us the <span style="font-family:arial,sans-serif;font-size:13px">Applicant class?</span><div><span style="font-family:arial,sans-serif;font-size:13px">because if you have something like: boolean valid; it will be automatically initialized to false, so the rule will not do anything just leave the Applicant as it is</span></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 24, 2013 at 10:05 AM, seyfullah <span dir="ltr">&lt;<a href="mailto:seyfullahtikic@outlook.com" target="_blank">seyfullahtikic@outlook.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I am trying to implement Driving License example application in Drools<br>
Documentation Versio 6.0.0.0 Final.<br>
My main method is as below.<br>
                KieServices kieServices = KieServices.Factory.get();<br>
                KieContainer kContainer = kieServices.getKieClasspathContainer();<br>
                StatelessKieSession kSession = kContainer.newStatelessKieSession();<br>
                Applicant applicant = new Applicant(&quot;Mr John Smith&quot;, 16);<br>
<br>
                assertTrue( applicant.isValid() );<br>
                kSession.execute( applicant ) ;<br>
                assertFalse ( applicant.isValid() );<br>
<br>
My licenseApplication.drl file is as below:<br>
package MyPackage<br>
<br>
import MyPackage.Applicant;<br>
<br>
rule &quot;Is of valid age&quot;<br>
when<br>
        $a : Applicant( age &lt; 18 )<br>
<br>
then<br>
        $a.setValid ( false );<br>
end<br>
<br>
Thanks to assertTrue and asserFalse methods, its output is<br>
It is false as not expected<br>
It is false as expected<br>
<br>
Bu when I change age parameter from 16 to 22 its output is same again. I<br>
expected that it is true.<br>
<br>
I think there is something wrong.<br>
Do you have any idea about this problem?<br>
<br>
Regards<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Driving-License-application-tp4027403.html" target="_blank">http://drools.46999.n3.nabble.com/Driving-License-application-tp4027403.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"> - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.com</a><div> - Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>

 - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -</div></div>
</div>