Re: [rules-users] NPE with enum?

2007-12-24 Thread Andrew Robinson
It wasn't a top level -- the and was necessary I just found the issue. I got this test output mixed up with another test. It turns out it was a dumb user error. The permissions list was null! Sorry for the trouble. -Andrew On Dec 24, 2007 9:27 AM, Mark Proctor <[EMAIL PROTECTED]> wrote: > The '

Re: [rules-users] NPE with enum?

2007-12-24 Thread Mark Proctor
The 'and' is redundant, it's implicitely implied for top level patterns $rt: ResourceType( ) $perm: ResourceTypePermission( accessType != AccessType.READ ) from $rt.permissions com.christws.entities.Role($rolename: name) from $perm.role Role(name == $rolename) Can you make a

[rules-users] LHS with combined "from" condition

2007-12-24 Thread Martin Book
Hello, i have following problem with defining a rule: - Object type A contains object OA with attribute session(long). - Object type B contains object OB with attribute session(long). I would like to get any object of type B that contains object OB with OB.session==OA.session My LHS