JBoss Community

Re: rules compiler - maven plugin

created by J J in jBPM - View the full discussion

Thanks. I moved on to sakai since Drools integration helper requires java 1.6.

 

Using https://github.com/sakaiproject/nakamura/tree/master/sandbox/drools/drools-maven-plugin I receive the following when compiling a MVEL rule

 

[ERROR] Unable to resolve ObjectType 'Car' : [Rule name='maserati']

 

 

[ERROR] Unable to resolve ObjectType 'Claim' : [Rule name='maserati']

 

 

[ERROR] Unable to build expression for 'consequence': [Error: Failed to compile: 2 compilation error(s):

- (1,6) unqualified type in strict mode for: $claim

- (1,12) unqualified type in strict mode for: valid]

[Near : {... Unknown ....}]

             ^

[Line: 1, Column: 0] '    $claim.valid = true

' : [Rule name='maserati']

 

 

[ERROR] Unable to resolve ObjectType 'Car' : [Rule name='lamborghini']

 

 

[ERROR] Unable to resolve ObjectType 'Claim' : [Rule name='lamborghini']

 

 

[ERROR] Unable to build expression for 'consequence': [Error: Failed to compile: 1 compilation error(s):

- (1,6) unqualified type in strict mode for: $claim]

[Near : {... Unknown ....}]

             ^

[Line: 1, Column: 0] '    $claim.setValid(true)

' : [Rule name='lamborghini']

Reply to this message by going to Community

Start a new discussion in jBPM at Community