<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Not sure whether you reformatted the DSL for the mailing list, but it’s worth pointing out that each phrase defined in the DSL needs to be on a single line.</div><div><br></div><div>This may have changed in a newer version of Drools (my DSL runs in 5.3), but DSL hasn’t been given much attention for a while, so I suspect not.</div><div><br></div><div>Steve</div><div><br></div><br><div><div>On 21 Mar 2014, at 13:22, Maxime Falaize &lt;<a href="mailto:maxime.falaize@gmail.com">maxime.falaize@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>Try with this :<br><br>rule "hello rule"<br>
&nbsp; &nbsp; &nbsp; &nbsp; when<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; There is a Customer with first name "David"<br>
&nbsp; &nbsp; &nbsp; &nbsp; then<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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("Hello " +<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 "{name}"=$customer :<br>
Customer(firstName == {name})<br>
[consequence][]Greet Customer=System.out.println("Hello " +<br>
$customer.getFirstName());<br>
-----------------------------------------------------------------------------------------------------<br>
<br>
Personally, I don'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 <a href="http://Nabble.com">Nabble.com</a>.<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>
_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-users</blockquote></div><br></body></html>