[rules-users] event declaration using fqn

Edson Tirelli tirelli at post.com
Thu Oct 28 12:14:24 EDT 2010


    This is a bug. Can you please open a ticket?

    Thanks,
         Edson

2010/10/28 Samuli Saarinen <samuli.saarinen at remion.com>:
> 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
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com




More information about the rules-users mailing list