[rules-users] event declaration using fqn

Samuli Saarinen samuli.saarinen at remion.com
Thu Oct 28 06:52:22 EDT 2010


Hi,

I'm trying to create event declaration using fqn in the declaration but 
for some reason it doesn't work. I have the following rule:

package com.test.pkg

declare com.test.Event1
	@role(event)
	@expires(2s)
end

compiling it produces the following error:

[6,11]: [ERR 103] Line 6:11 rule 'end_key' failed predicate: 
{(validateIdentifierKey(DroolsSoftKeywords.END))}? in  com

But if I change it as follows:

package com.test.pkg

import com.test.Event1

declare Event1
	@role(event)
	@expires(2s)
end

Everything works as expected...

 From what I've read from the users guide it should work in both cases 
but am I missing something obvious here or is this possibly a bug?

I'm using Drools 5.1.0 but tested this with 5.1.1 also

Cheers,

Samuli


-- 
Remion Oy           Etävalvontajärjestelmät liiketoiminnan
Samuli Saarinen           tehostamiseen
gsm +358 (0)50 3560075
fax +358 (0)3 2125064       www.remion.com



More information about the rules-users mailing list