<div dir="ltr"><div>Try with this :<br><br>rule &quot;hello rule&quot;<br>
        when<br>
                There is a Customer with first name &quot;David&quot;<br>
        then<br>
                Greet Customer<br>
end<br><br></div><div>and this DSL :<br><br></div><div>----------------------------------------------------------------------------------------------------<br><div id=":52t" class="">
[condition][]There is a Customer with first name {name}=$customer :<br>
Customer(firstName == {name})<br>
[consequence][]Greet Customer=System.out.println(&quot;Hello &quot; +<br>
$customer.getFirstName());<br>
-----------------------------------------------------------------------------------------------------</div><br><br></div><div>Of course your DSLR file is dependent of the DSL. Without the DSL, Drools cannot guess what you want to do.<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-21 14:12 GMT+01:00 ankit3j <span dir="ltr">&lt;<a href="mailto:ankit3j@gmail.com" target="_blank">ankit3j@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Contents of Sample.dsl<br>
----------------------------------------------------------------------------------------------------<br>
[condition][]There is a Customer with first name &quot;{name}&quot;=$customer :<br>
Customer(firstName == {name})<br>
[consequence][]Greet Customer=System.out.println(&quot;Hello &quot; +<br>
$customer.getFirstName());<br>
-----------------------------------------------------------------------------------------------------<br>
<br>
Personally, I don&#39;t think its dependent on DSL contents as I have not yet<br>
compiled anything. From my point of view, my DSLR file is still independent<br>
of whatever DSL I am using.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p4028888.html" target="_blank">http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p4028888.html</a><br>

<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Maxime FALAIZE
</div>