[rules-users] Exception: rule 'end_key' failed predicate

Tina Vießmann tviessmann at stud.hs-bremen.de
Thu Aug 12 09:44:59 EDT 2010


Thank you, Edson. :)

Will collection without generic marker work?
For excample:
     valueSet : Set

Because if it should work, it doesn't do for me. I'm getting a 
NullPointerException:
     at 
org.drools.rule.builder.PatternBuilder.getDeclarationsMap(PatternBuilder.java:641)

Thank you :)
Tina



Am 12.08.2010 14:56, schrieb Edson Tirelli:
>    No generics. Sorry.
>
>    Edson
>
> 2010/8/12 Tina Vießmann <tviessmann at stud.hs-bremen.de 
> <mailto:tviessmann at stud.hs-bremen.de>>
>
>     Hi,
>
>     I'm receiving a exception when trying to run my application:
>      [ERR 103] Line 44:24 rule 'end_key' failed predicate:
>     {(validateIdentifierKey(DroolsSoftKeywords.END))}? in 
>     Watcher[55,0]: [ERR 101] Line 55:0 no viable alternative at input
>     'global' in rule end
>
>     The relevant code is:
>
>         declare Watcher
>             @role ( event )
>
>             triggeringValue : Value
>             numberOfContainedValues : int
>             valueSet : Set<Value>
>         end
>
>         global Logger LOG;    # Line 55
>
>
>     I know the problem lies in the Watcher declaration, but I don't
>     know what it is.
>
>     Thanks for any help! :)
>     Tina
>
>     _______________________________________________
>     rules-users mailing list
>     rules-users at lists.jboss.org <mailto: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 <http://www.jboss.com>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100812/6208c1df/attachment.html 


More information about the rules-users mailing list