[rules-users] BuildError: Unable to Analyse Expression BUT WORKING, how can I remove error

Joe White Joe.White at recondotech.com
Wed Mar 26 15:54:44 EDT 2014


I haven't done it in a long time but I think you have to disable strict mode in your eclipse ini file

>From the docs:
drools.dialect.mvel.strict = <true|false>

I can't swear that will work though.  What does getProviderClaimNumber return? Does it actually have a getValue() method?

From: rules-users-bounces at lists.jboss.org [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Gopu Shrestha
Sent: Wednesday, March 26, 2014 1:29 PM
To: Rules Users List
Subject: [rules-users] BuildError: Unable to Analyse Expression BUT WORKING, how can I remove error

It is so annoying to see an error marks in Eclipse Juno with Drools Plug in. However the code is working fine...
How can clean up this error??? Please advise...


[cid:image001.png at 01CF48F8.D26F42F0]

Error Message!!!!!
BuildError: Unable to Analyse Expression System.out.println(".......java (getter/setter)...providerClaimNumber.."+$claim.getClaimIdentificationInfo().getProviderClaimNumber().getValue());
                System.out.println("......mvel...providerClaimNumber.."+$claim.claimIdentificationInfo.providerClaimNumber.value);
                System.out.println("...ctype..."+$ct.value);:
[Error: unable to resolve method using strict-mode: java.lang.String.getValue()]
[Near : {... oviderClaimNumber().getValue()); ....}]
                                                                                                                  ^
[Line: 32, Column: 0]


Console Output:....
.......java (getter/setter)...providerClaimNumber..130430007701
......mvel...providerClaimNumber..130430007701
...ctype...I

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140326/c7b4f074/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 16325 bytes
Desc: image001.png
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20140326/c7b4f074/attachment-0001.png 


More information about the rules-users mailing list