<br>&nbsp;&nbsp; Correct is either:<br><br>Role(name == &quot;christws-admin&quot; || == &quot;site-admin&quot; || == &quot;resource-type-admin&quot;)<br><br>&nbsp;&nbsp; Or:<br><br>Role(name in ( &quot;christws-admin&quot;, &quot;site-admin&quot;, &quot;resource-type-admin&quot;) )
<br><br>&nbsp;&nbsp; Where in the docs it says that the syntax you used is correct?<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/12/18, Andrew Robinson &lt;<a href="mailto:andrew.rw.robinson@gmail.com">andrew.rw.robinson@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 upgraed my jboss seam and got the new drools-core and<br>drools-compiler installed. In my maven 
pom.xml, I am loading 4.0.3 of<br>each. My rule is not loading though.<br><br>Rule from &quot;entity-rules.drl&quot;:<br><br>// Resource type (this is line 16)<br>rule &quot;Resource type changes&quot;<br>&nbsp;&nbsp;no-loop<br>&nbsp;&nbsp;activation-group &quot;permissions&quot;
<br>when<br>&nbsp;&nbsp;check: PermissionCheck(name == &quot;com.christws.entities.ResourceType&quot;,<br>granted == false)<br>&nbsp;&nbsp;(<br>&nbsp;&nbsp;&nbsp;&nbsp;Role(name == &quot;christws-admin&quot; || &quot;site-admin&quot; || &quot;resource-type-admin&quot;)
<br>&nbsp;&nbsp;&nbsp;&nbsp;or<br>&nbsp;&nbsp;&nbsp;&nbsp;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$rt: ResourceType( )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$perm: ResourceTypePermission( accessType != AccessType.READ )<br>from $rt.permissions<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Role(id == $perm.role.id)<br>&nbsp;&nbsp;&nbsp;&nbsp;)<br>&nbsp;&nbsp;)<br>then<br>&nbsp;&nbsp;check.grant
();<br>end;<br><br>I am getting parsing errors with the Role line due to the &quot;&quot;||&quot;&quot;||&quot;&quot;<br>syntax and with the $perm line because of the &quot;from&quot;. According to<br>[1], these should work.
<br><br>23:06:49,082 ERROR [RuleBase] errors parsing rules in:<br>/META-INF/entity-rules.drl<br>23:06:49,083 ERROR [RuleBase] unknown:23:37 Unexpected token<br>&#39;&quot;site-admin&quot;&#39; (/META-INF/entity-rules.drl)
<br>23:06:49,083 ERROR [RuleBase] unknown:23:37 Unexpected token<br>&#39;&quot;site-admin&quot;&#39; (/META-INF/entity-rules.drl)<br>23:06:49,083 ERROR [RuleBase] unknown:23:53 Unexpected token<br>&#39;&quot;resource-type-admin&quot;&#39; (/META-INF/entity-
rules.drl)<br>23:06:49,083 ERROR [RuleBase] unknown:27:6 mismatched token:<br>[@170,739:743=&#39;$perm&#39;,&lt;7&gt;,27:6]; expecting type RIGHT_PAREN<br>(/META-INF/entity-rules.drl)<br>23:06:49,083 ERROR [RuleBase] unknown:29:4 mismatched token:
<br>[@205,859:859=&#39;)&#39;,&lt;12&gt;,29:4]; expecting type THEN<br>(/META-INF/entity-rules.drl)<br><br>What am I doing wrong? I am trying to see if the user has one of the 3<br>admin roles or has a role whose permission is update or delete (not
<br>read) (ResourceType has List&lt;ResourceTypePermission&gt; getPermissions()<br>which has getAccessType() and getRole()).<br><br>Thanks,<br>Andrew<br><br>[1] <a href="http://downloads.jboss.com/drools/docs/4.0.3.15993.GA/html_single/index.html">
http://downloads.jboss.com/drools/docs/4.0.3.15993.GA/html_single/index.html</a><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org
</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;JBoss Drools Core Development
<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>