[rules-users] Guvnor fails to vaildate rule, though same rule compiles and run successfully when compiled command line with ANT.

Jaroslaw Kijanowski kijanowski at gmail.com
Wed Sep 2 15:09:19 EDT 2009


Hi,
  I can't reproduce your issue, however I tried with a declarative 
model, not an uploaded jar. Can you try with trunk?

https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/drools-5.1.0.SNAPSHOT-guvnor.zip

Cheers,
  Jarek

Codedrop wrote:
> Reposting as last message was unledgible.
> 
> Recently upgraded from Drools 4.0.7 to 5.1.0 and have imported our rules
> into Guvnor.  Unable to determine why the same rules will not correctly
> validate in Guvnor which prevents building a package for deployment.
> 
> Sample Rule:
> 
> salience 50
> agenda-group "idia"
>                 when
>        Root(identityRequest != null)
>                 then
>                                 logger.debug("Main - Main Data Evaluation");
>                                 System.out.println("Main - Main Data
> Evaluation");
>         drools.getWorkingMemory().setFocus("mainAnalysis");
> Throws the following validation error when you select ‘Validate’:
> [Main - Data Evaluation] Unable to create Field Extractor for
> 'identityRequest' of '[ClassObjectType
> class=com.netid.idia.model.natal.rootIdentityRequest.Root]' in rule 'Main -
> Data Evaluation'
> 
> Unsure why identityRequest  is failing.  There is a valid getter in the java
> file and guvnor displays identityRequest in the list of attributes for
> ‘Root’. Oddly, if I change the when clause to be   
> Root(this.identityRequest != null)  it validates fine.  Did something change
> between 4.0.7 and 5.1.0 that I’m missing or do I have error somewhere that
> goes undetected outside the guvnor?
> 
> 



More information about the rules-users mailing list