[rules-users] Using groovy classes as Fact Classes in Guvnor

HonorGod jagadeesh.motamarri at barclayscapital.com
Sun Jan 10 09:47:59 EST 2010


This seems to be a legitimate issue ....have you found a solution yet ?

Thanks

leesy84 wrote:
> 
> Hi
> 
> I am currently trying to implement Drools 5.0.CR1 with grails, I have
> created a couple of domain classes which are simple Groovy classes with a
> couple of fields. I want to load these classes as my model into Guvnor and
> then create rules using those classes. I am having a few problems when
> "Saving and Validating" my configuration. I have a war file that is
> generated using maven and it has my classes files inside it in
> /WEB-INF/classes/ . I load the war as my model and the classes are shown
> on the packages main page but the following error is given when pressing
> "Save and Validate configuration"
> 
> [ERR 102] Line 1:10 mismatched input '-'
> 
> I have also tried using groovyc to compile my class files then jar'ing
> them up and loading that as the model but got another error:-
> 
> java.lang.ClassNotFoundException: groovy.lang.GroovyObject
> 
> 
> I was wondering if it is possible to use groovy compiled class files and
> if it is then does anyone know what my issue might be or how it is meant
> to be done correctly.
> 
> Thanks in advance for any help
> 
> Daniel Lees
> 

-- 
View this message in context: http://n3.nabble.com/Using-groovy-classes-as-Fact-Classes-in-Guvnor-tp60190p115963.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list