<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:963194652;
        mso-list-template-ids:-144508088;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>How do you disable strict mode in 5.4? We are using the code below and getting strict mode exceptions. It worked in prior versions. Do you have to use the new APIs to disable strict mode?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'>PackageBuilderConfiguration pkgBuilderCfg = </span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>new</span></b><span style='font-size:10.0pt;font-family:Consolas;color:black'> PackageBuilderConfiguration();</span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'>MVELDialectConfiguration mvelConf = (MVELDialectConfiguration) pkgBuilderCfg.getDialectConfiguration( </span><span style='font-size:10.0pt;font-family:Consolas;color:#2A00FF'>"mvel"</span><span style='font-size:10.0pt;font-family:Consolas;color:black'> );</span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'>mvelConf.setStrict(</span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>false</span></b><span style='font-size:10.0pt;font-family:Consolas;color:black'>);</span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'>mvelConf.setLangLevel(5);</span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black'>PackageBuilder <span style='background:yellow;mso-highlight:yellow'>builder</span> = </span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>new</span></b><span style='font-size:10.0pt;font-family:Consolas;color:black'> PackageBuilder(pkgBuilderCfg);</span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:Consolas;color:black;background:silver;mso-highlight:silver'>builder</span><span style='font-size:10.0pt;font-family:Consolas;color:black'>.addPackageFromDrl(</span><b><span style='font-size:10.0pt;font-family:Consolas;color:#7F0055'>new</span></b><span style='font-size:10.0pt;font-family:Consolas;color:black'> StringReader(drlString));</span><span style='font-size:10.0pt;font-family:Consolas'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>An example exception:<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;text-indent:-.25in;line-height:15.75pt;mso-list:l0 level1 lfo1;background:white;vertical-align:top'><![if !supportLists]><span style='font-size:9.0pt;font-family:Consolas;color:black'><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:9.0pt;font-family:Consolas;color:black'>19:17:51,137|ERROR|drools.DroolsMgr|DroolsMgr.java|159|deployRulesFromModelForScope|org.apache.camel.spring.Main.main()|smf-rcp-SNAPSHOT|Failed to deploy rules from model<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;text-indent:-.25in;line-height:15.75pt;mso-list:l0 level1 lfo1;background:white;vertical-align:top'><![if !supportLists]><span style='font-size:9.0pt;font-family:Consolas;color:black'><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:9.0pt;font-family:Consolas;color:black'>com.recondotech.hre.rules.management.HRERulesManagmentException: org.drools.rule.InvalidRulePackage: Unable to Analyse Expression $existingValue.toLowerCase():<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;text-indent:-.25in;line-height:15.75pt;mso-list:l0 level1 lfo1;background:white;vertical-align:top'><![if !supportLists]><span style='font-size:9.0pt;font-family:Consolas;color:black'><span style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:9.0pt;font-family:Consolas;color:black'>[Error: unable to resolve method using strict-mode: java.lang.Object.toLowerCase()]<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;text-indent:-.25in;line-height:15.75pt;mso-list:l0 level1 lfo1;background:white;vertical-align:top'><![if !supportLists]><span style='font-size:9.0pt;font-family:Consolas;color:black'><span style='mso-list:Ignore'>4.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:9.0pt;font-family:Consolas;color:black'>[Near : {... $existingValue.toLowerCase() ....}]<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;text-indent:-.25in;line-height:15.75pt;mso-list:l0 level1 lfo1;background:white;vertical-align:top'><![if !supportLists]><span style='font-size:9.0pt;font-family:Consolas;color:black'><span style='mso-list:Ignore'>5.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span style='font-size:9.0pt;font-family:Consolas;color:black'> ^ : [Rule name='PEL_CHANGELIST_RES.AUTH.Actual First Name']<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks<o:p></o:p></p><p class=MsoNormal>Joe<o:p></o:p></p></div></body></html>