<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 21/03/2012 20:19, Wolfgang Laun wrote:
<blockquote
cite="mid:CANaj1LefCurh80nY4cNkXkEGwT9dVmMs2SS0bmY_Xp2=BUd1NQ@mail.gmail.com"
type="cite">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?<br>
-W<br>
</blockquote>
declare also works to declare annotations for existings beans on
your own classpath - as long you don't define any properties.<br>
<br>
Mark<br>
<blockquote
cite="mid:CANaj1LefCurh80nY4cNkXkEGwT9dVmMs2SS0bmY_Xp2=BUd1NQ@mail.gmail.com"
type="cite"><br>
<br>
<br>
<div class="gmail_quote">2012/3/21 Mark Proctor <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>></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'm trying to disable strictTyping for my MVEL rules, but I cannot figure out
how. <a moz-do-not-send="true" href="http://mvel.codehaus.org/MVEL+2.0+Typing" target="_blank">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 moz-do-not-send="true"
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 = <true|false></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 moz-do-not-send="true"
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 moz-do-not-send="true">5.7.2.1.2. @typesafe(
<boolean> )</a></h5>
</div>
</div>
</div>
<p><a moz-do-not-send="true">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 moz-do-not-send="true" 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 class="HOEnZb"><font color="#888888">
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a moz-do-not-send="true"
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>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>