<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 21/03/2012 18:45, barnesjd wrote:
    <blockquote cite="mid:1332355517045-3846477.post@n3.nabble.com"
      type="cite">
      <pre wrap="">I'm trying to disable strictTyping for my MVEL rules, but I cannot figure out
how.   <a class="moz-txt-link-freetext" href="http://mvel.codehaus.org/MVEL+2.0+Typing">http://mvel.codehaus.org/MVEL+2.0+Typing</a> The only example I've found 
shows the use of the class ParserContext.  I'm using KnowledgeBuilder,
KnowledgeBase, StatefulKnowledgeSession, etc. to run my rules.  I don't see
any methods where I can disable strictTyping or get the ParserContext, so
I'm out of ideas.

Can anyone point me in the right direction?</pre>
    </blockquote>
<a class="moz-txt-link-freetext" href="http://docs.jboss.org/drools/release/5.4.0.Beta2/knowledge-api-javadoc/org/drools/KnowledgeBaseConfiguration.html">http://docs.jboss.org/drools/release/5.4.0.Beta2/knowledge-api-javadoc/org/drools/KnowledgeBaseConfiguration.html</a><br>
    And MVEL supports the following configurations:
    <ul>
      <li>drools.dialect.mvel.strict = &lt;true|false&gt;</li>
    </ul>
    <p><br>
      However we would recommend instead that you don't use that
      configuration and instead use the @typesafe annotation on class
      declarations. So you relax just specific classes, rather than
      relaxing everything.<br>
<a class="moz-txt-link-freetext" href="http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-expert-docs/html_single/index.html">http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-expert-docs/html_single/index.html</a><br>
    </p>
    <div class="section" lang="en-US">
      <div class="titlepage">
        <div>
          <div>
            <h5 class="title"><a id="d0e3609">5.7.2.1.2.&nbsp;@typesafe(
                &lt;boolean&gt; )</a></h5>
          </div>
        </div>
      </div>
      <p><a id="d0e3609">By default all type declarations are compiled
          with type safety enabled; @typesafe( false ) provides a means
          to override this behaviour by permitting a fall-back, to type
          unsafe evaluation where all constraints are generated as MVEL
          constraints and executed dynamically. This can be important
          when dealing with collections that do not have any generics or
          mixed type collections.</a></p>
    </div>
    <p><br>
    </p>
    <br>
    <blockquote cite="mid:1332355517045-3846477.post@n3.nabble.com"
      type="cite">
      <pre wrap="">

Thanks!
Joe


--
View this message in context: <a class="moz-txt-link-freetext" href="http://drools.46999.n3.nabble.com/Setting-strictTyping-strongTyping-modes-tp3846477p3846477.html">http://drools.46999.n3.nabble.com/Setting-strictTyping-strongTyping-modes-tp3846477p3846477.html</a>
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>