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
On 21/03/2012 18:45, barnesjd wrote:http://docs.jboss.org/drools/release/5.4.0.Beta2/knowledge-api-javadoc/org/drools/KnowledgeBaseConfiguration.htmlI'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?
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_single/index.html
Thanks! Joe -- View this message in context: http://drools.46999.n3.nabble.com/Setting-strictTyping-strongTyping-modes-tp3846477p3846477.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users