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