<br> Your message seems to be truncated.<br> Can you please re-send?<br><br> []s<br> Edson<br><br><div><span class="gmail_quote">2007/11/7, Adrian Cowham <<a href="mailto:adrian.cowham@gmail.com">adrian.cowham@gmail.com
</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm running into an issue where the || operator embedded in a collect CE isn't working as expected. The rule I have is
<br><br>rule Grant Access"
<br> when
<br> $request : AccessRequest($name : username, $ID : sessionID, $loc : accessLocation, $day : dayOfAccess)
<br> $user : NetworkUser(username == $name)
<br> $group : UserGroup(users contains $user)
<br> $locationRules : ArrayList(size > 0) from
<br> collect (AccessRule((allowedLocation == "ANY" || allowedLocation == $loc), allowAccess == "false")
<br> from $group.getRules())
<br> then
<br> # access granted<br><br>end<br><br><br>The issue I'm having is with AccessRule((allowedLocation == "ANY" || allowedLocation == $loc), allowAccess == "false"), this translate to "all access rules that have the allowed location set to ANY or set to the location the user is logging in from". I created a UserGroup named "
super.users" that contains a user named "root" and a single rule that allows access from ANY location. However, when I simulate a login with "root" <br>
<br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646
<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>