[rules-users] is null or is not Null failing for a String field check in Guvnor drl

Michael Anstis michael.anstis at gmail.com
Mon Sep 5 16:04:35 EDT 2011


Shame :(

5.2.0.Final could well be fixed... are you able to try that? CR! was
effectively pre-release.

2011/9/5 puja nandamuri <med_9501 at yahoo.com>

> Michael,
>
> Thanks. Yes, I am using 5.2.0.CR1.I do not have a choice to move to 5.3 at
> this point.
>
> as an alternate, I am using the following work around.
>
> to be able to do 'is null'  or 'is not null'  for checking null condition
> on a field,
>
> I select 'equal to'  as the operator and then, I click on the function
> button  instead  of literal value .
>
> In the text box that comes up, I enter null
>
> Doing this validates the condition successfully and I am able to run the
> test scenario successfully .
> similarly, I select 'not equal to' operator for checking is not null
> condition and then in the function text box, I enter null.
>
>
>
>
>
>
> --- On *Mon, 9/5/11, Michael Anstis <michael.anstis at gmail.com>* wrote:
>
>
> From: Michael Anstis <michael.anstis at gmail.com>
> Subject: Re: [rules-users] is null or is not Null failing for a String
> field check in Guvnor drl
> To: "Rules Users List" <rules-users at lists.jboss.org>
> Date: Monday, September 5, 2011, 12:13 PM
>
>
> It was a bug but was fixed a while ago.
>
> 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).
>
> 2011/9/5 puja nandamuri <med_9501 at yahoo.com<http://mc/compose?to=med_9501@yahoo.com>
> >
>
> Hi ,
>
> when using a business rule guided editor ,
>
> for a fact, when I select a string type field from the drl guided editor in
> Guvnor  and select
>  is null from the dropdown list of operators,
>
> I get the following validation error when I do a validate on the rule.
>
> no viable alternative at input 'null' in rule
> "Asset_Description_NullCheckRule"
>
> when I do a View Source, it shows the source as
>
> when
>             Asset( description == null null )
>
> Is this a bug ?
>
> if I select the free form drl option and create the when condition as
>
> Asset( description == null ) , it validates fine.
>
> Thanks,
>
> Ram
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org<http://mc/compose?to=rules-users@lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> -----Inline Attachment Follows-----
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org<http://mc/compose?to=rules-users@lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110905/946daf2c/attachment.html 


More information about the rules-users mailing list