<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">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 ?<br><br>--- On <b>Mon, 9/5/11, Michael Anstis <i>&lt;michael.anstis@gmail.com&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;michael.anstis@gmail.com&gt;<br>Subject: Re: [rules-users] is null or is not Null failing for a String field check in Guvnor drl<br>To: "Rules Users List" &lt;rules-users@lists.jboss.org&gt;<br>Date: Monday, September 5, 2011, 1:04 PM<br><br><div id="yiv2146154931">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 class="yiv2146154931gmail_quote">2011/9/5 puja nandamuri <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:med_9501@yahoo.com"
 target="_blank" href="/mc/compose?to=med_9501@yahoo.com">med_9501@yahoo.com</a>&gt;</span><br>
<blockquote class="yiv2146154931gmail_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">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 'is null' &nbsp;or 'is not null' &nbsp;for checking null condition on a field,</div>
<div><br></div><div>I select 'equal to' &nbsp;as the operator and then, I click on the function button &nbsp;instead &nbsp;of literal value .</div><div><br></div><div>In the text box that comes up, I enter null &nbsp;</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 'not equal to' operator for checking is not null condition and then in the function text box, I enter
 null.</div><div><br></div><div>&nbsp;</div><div><br></div><div><br></div><div><br><br>--- On <b>Mon, 9/5/11, Michael Anstis <i>&lt;<a rel="nofollow" ymailto="mailto:michael.anstis@gmail.com" target="_blank" href="/mc/compose?to=michael.anstis@gmail.com">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" ymailto="mailto:michael.anstis@gmail.com" target="_blank" href="/mc/compose?to=michael.anstis@gmail.com">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: "Rules Users List" &lt;<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>Date: Monday, September 5, 2011, 12:13 PM<div><div></div><div class="yiv2146154931h5"><br><br><div>
It was a bug but was fixed a while ago.<br><br>I can't recall if it made 5.2 - but it definately doesn'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" target="_blank" href="http://mc/compose?to=med_9501@yahoo.com">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&nbsp; and select <br>&nbsp;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 'null' in rule "Asset_Description_NullCheckRule"<br><br>when I do a View Source, it shows the source as <br><br>when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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" target="_blank" href="http://mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
</div><br></div></div>-----Inline Attachment Follows-----<div class="yiv2146154931im"><br><br><div>_______________________________________________<br>rules-users mailing list<br><a rel="nofollow" target="_blank" href="http://mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">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" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="/mc/compose?to=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></blockquote></div></td></tr></table>