No problem foreseen.<br><br>The issue was that the &quot;value&quot; was added to the DRL even though the operator &quot;not null&quot; didn&#39;t need a value.<br><br>Another work around is to first use &quot;equals&quot;, then enter a literal value (a single space, or empty string) and then the &quot;not null&quot; operator.<br>
<br>Your work around seems simpler though.<br><br><div class="gmail_quote">2011/9/5 puja nandamuri <span dir="ltr">&lt;<a href="mailto:med_9501@yahoo.com">med_9501@yahoo.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">what do you think of using the function route as a work around?<div><br></div><div>do you see any issues with using that ?<div class="im">
<br><br>--- On <b>Mon, 9/5/11, Michael Anstis <i>&lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;</i></b> wrote:<br></div><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px">
<div class="im"><br>From: Michael Anstis &lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;<br>Subject: Re: [rules-users] is null or is not Null failing for a String field check in Guvnor drl<br>
To: &quot;Rules Users List&quot; &lt;<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>&gt;<br></div>Date: Monday, September 5, 2011, 1:04 PM<div><div></div><div class="h5"><br><br>
<div>Shame :(<br><br>5.2.0.Final could well be fixed... are you able to try that? CR! was effectively pre-release.<br><br><div>2011/9/5 puja nandamuri <span dir="ltr">&lt;<a rel="nofollow" href="http://mc/compose?to=med_9501@yahoo.com" target="_blank">med_9501@yahoo.com</a>&gt;</span><br>

<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">Michael,<div><br></div>
<div>Thanks. Yes, I am using 5.2.0.CR1.I do not have a choice to move to 5.3 at this point.</div><div><br></div><div>as an alternate, I am using the following work around.</div><div><br></div><div>to be able to do &#39;is null&#39;  or &#39;is not null&#39;  for checking null condition on a field,</div>

<div><br></div><div>I select &#39;equal to&#39;  as the operator and then, I click on the function button  instead  of literal value .</div><div><br></div><div>In the text box that comes up, I enter null  </div><div><br>
</div>
<div>Doing this validates the condition successfully and I am able to run the test scenario successfully .</div><div>similarly, I select &#39;not equal to&#39; operator for checking is not null condition and then in the function text box, I enter
 null.</div><div><br></div><div> </div><div><br></div><div><br></div><div><br><br>--- On <b>Mon, 9/5/11, Michael Anstis <i>&lt;<a rel="nofollow" href="http://mc/compose?to=michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;</i></b> wrote:<br>

<blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px"><br>From: Michael Anstis &lt;<a rel="nofollow" href="http://mc/compose?to=michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;<br>
Subject: Re: [rules-users] is null or is not Null failing for a String field check in Guvnor drl<br>
To: &quot;Rules Users List&quot; &lt;<a rel="nofollow" href="http://mc/compose?to=rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>&gt;<br>Date: Monday, September 5, 2011, 12:13 PM<div><div></div>
<div><br><br><div>
It was a bug but was fixed a while ago.<br><br>I can&#39;t recall if it made 5.2 - but it definately doesn&#39;t exist in 5.3.0.CR1 (or master branch as of today - I just checked).<br><br><div>2011/9/5 puja nandamuri <span dir="ltr">&lt;<a rel="nofollow" href="http://mc/compose?to=med_9501@yahoo.com" target="_blank">med_9501@yahoo.com</a>&gt;</span><br>


<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">Hi ,<br><br>when using a business rule guided editor ,<br>


<br>for a fact, when I select a string type field from the drl guided editor in Guvnor  and select <br> is null from the dropdown list of operators,<br><br>I get the following validation error when I do a validate on the rule.<br>


<br>no viable alternative at input &#39;null&#39; in rule &quot;Asset_Description_NullCheckRule&quot;<br><br>when I do a View Source, it shows the source as <br><br>when<br>            Asset( description == null null ) <br>


<br>Is this a bug ? <br><br>if I select the free form drl option and create the when condition as<br><br> Asset( description == null ) , it validates fine.<br><br>Thanks,<br><br>Ram<br></td></tr></tbody></table><br>_______________________________________________<br>



rules-users mailing list<br>
<a rel="nofollow" href="http://mc/compose?to=rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
</div><br></div></div>-----Inline Attachment Follows-----<div><br><br><div>_______________________________________________<br>rules-users mailing list<br><a rel="nofollow" href="http://mc/compose?to=rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>

<a rel="nofollow" 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></td></tr></tbody></table><br>_______________________________________________<br>


rules-users mailing list<br>
<a rel="nofollow" href="http://mc/compose?to=rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
</div><br>-----Inline Attachment Follows-----<br><br><div>_______________________________________________<br>rules-users mailing list<br><a href="http://mc/compose?to=rules-users@lists.jboss.org" target="_blank">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></div></blockquote></div></td></tr></tbody></table><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>
<br></blockquote></div><br>