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?
-W
declare also works to declare annotations for existings beans on your
own classpath - as long you don't define any properties.
Mark
2012/3/21 Mark Proctor <mproctor(a)codehaus.org
<mailto:mproctor@codehaus.org>>
On 21/03/2012 18:45, barnesjd wrote:
> I'm trying to disable strictTyping for my MVEL rules, but I cannot figure
out
>
how.http://mvel.codehaus.org/MVEL+2.0+Typing 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?
http://docs.jboss.org/drools/release/5.4.0.Beta2/knowledge-api-javadoc/or...
And MVEL supports the following configurations:
* drools.dialect.mvel.strict = <true|false>
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.
http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-expert-docs/html_...
5.7.2.1.2. @typesafe( <boolean> )
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.
> Thanks!
> Joe
>
>
> --
> View this message in
context:http://drools.46999.n3.nabble.com/Setting-strictTyping-strongTypi...
> Sent from the Drools: User forum mailing list archive at
Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org <mailto:rules-users@lists.jboss.org>
>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org <mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users