[rules-users] Error due to same class name

Sumit Dhaniya sumitdhaniya at gmail.com
Fri Jul 11 13:33:48 EDT 2014


I've two classes with same name but in different packages.
I created several guided rules which use these classes when I validate
individual rules they get validated but when I try to Build and Deploy the
project it fails cause it try to find a field in another class.

Unable to create Field Extractor for 'isPH'Field/method 'isPH' not found for
cla
ss 'com.****.****.db.user.TmSlot'
 : [Rule name='ProducerHour']
org.drools.core.RuntimeDroolsException: Field/method 'isPH' not found for
class
'com.****.****.db.user.TmSlot'

Unable to Analyse Expression isPH == true:
[Error: unable to resolve method using strict-mode:
com.****.****.db.user.TmSlot.isPH()]
[Near : {... isPH == true ....}]



--
View this message in context: http://drools.46999.n3.nabble.com/Error-due-to-same-class-name-tp4030304.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list