I&#39;d assume the rule regarding how to annotate a POJO for use as an event apply.<br><br>i.e. Declare a type of the same name in the same package with no members other than the applicable annotation.<br><br>I could be wrong however.<br>
<br><div class="gmail_quote">On 21 March 2012 20:19, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yeah, but where would I put this @tpyesafe(true) thing, exactly? It seems that this is available with DRL declares only. So, what do I do with my pojo bean class?<span class="HOEnZb"><font color="#888888"><br>-W</font></span><div class="HOEnZb">
<div class="h5"><br><br><br><br><div class="gmail_quote">2012/3/21 Mark Proctor <span dir="ltr">&lt;<a href="mailto:mproctor@codehaus.org" target="_blank">mproctor@codehaus.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    On 21/03/2012 18:45, barnesjd wrote:
    <blockquote type="cite">
      <pre>I&#39;m trying to disable strictTyping for my MVEL rules, but I cannot figure out
how.   <a href="http://mvel.codehaus.org/MVEL+2.0+Typing" target="_blank">http://mvel.codehaus.org/MVEL+2.0+Typing</a> The only example I&#39;ve found 
shows the use of the class ParserContext.  I&#39;m using KnowledgeBuilder,
KnowledgeBase, StatefulKnowledgeSession, etc. to run my rules.  I don&#39;t see
any methods where I can disable strictTyping or get the ParserContext, so
I&#39;m out of ideas.

Can anyone point me in the right direction?</pre>
    </blockquote>
<a href="http://docs.jboss.org/drools/release/5.4.0.Beta2/knowledge-api-javadoc/org/drools/KnowledgeBaseConfiguration.html" target="_blank">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&#39;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 href="http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-expert-docs/html_single/index.html" target="_blank">http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-expert-docs/html_single/index.html</a><br>
    </p>
    <div lang="en-US">
      <div>
        <div>
          <div>
            <h5><a>5.7.2.1.2. @typesafe(
                &lt;boolean&gt; )</a></h5>
          </div>
        </div>
      </div>
      <p><a>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 type="cite">
      <pre>Thanks!
Joe


--
View this message in context: <a href="http://drools.46999.n3.nabble.com/Setting-strictTyping-strongTyping-modes-tp3846477p3846477.html" target="_blank">http://drools.46999.n3.nabble.com/Setting-strictTyping-strongTyping-modes-tp3846477p3846477.html</a><span><font color="#888888">
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</font></span></pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a 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>
</div></div><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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>