title: Permission check logic in Drools using mvel2
body: <p>I am new to drools.How can I resolve this logic properly according to drools syntax (mvel2)?? </p>
  
  <pre><code>rule CAN_LOGIN_TOACCOUNTMASTER
  when 
    c: PermissionCheck( target == "login", action=="can" )
    Role(name in ("A", "B", "C", "D", E", "F"))
  c.grant();
  </code></pre>
  
  <p>This syntax is working fine with drools 4 with mvel. but not in drools 5 with mvel2. </p>
  
  <p><strong>Edit</strong>
  The typos are a copy-paste issue.</p>
  
  <p>I received the following the error message in JBOSS EAP 6.3</p>
  
  <p>Caused by: org.drools.rule.InvalidRulePackage: Predicate 'name == "A" || name == "B" || name == "C" || name == "D" || name == "E" || name == "F"' must be a Boolean expression
  [Line: 132, Column: 8] : [Rule name='CAN_LOGIN_TOACCOUNTMASTER']</p>
  
  <pre><code>at org.drools.rule.Package.checkValidity(Package.java:478) [drools-core-5.3.0.Final.jar:5.3.0.Final]
  at org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:481) [drools-core-5.3.0.Final.jar:5.3.0.Final]
  at org.drools.reteoo.ReteooRuleBase.addPackages(ReteooRuleBase.java:458) [drools-core-5.3.0.Final.jar:5.3.0.Final]
  at org.drools.reteoo.ReteooRuleBase.addPackage(ReteooRuleBase.java:465) [drools-core-5.3.0.Final.jar:5.3.0.Final]
  at org.jboss.seam.drools.RuleBase.compileRuleBase(RuleBase.java:121) [jboss-seam-2.2.0.GA.jar:2.2.0.GA]
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_11]
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_11]
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_11]
  at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_11]
  at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.0.GA.jar:2.2.0.GA]
  at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam-2.2.0.GA.jar:2.2.0.GA]
  at org.jboss.seam.Component.callComponentMethod(Component.java:2249) [jboss-seam-2.2.0.GA.jar:2.2.0.GA]
  at org.jboss.seam.Component.callCreateMethod(Component.java:2172) [jboss-seam-2.2.0.GA.jar:2.2.0.GA]
  at org.jboss.seam.Component.newInstance(Component.java:2132) [jboss-seam-2.2.0.GA.jar:2.2.0.GA]
  ... 60 more
  </code></pre>