Turn off strict mode in drooling

I get an error like Error: unable to resolve method using strict-mode: ...
I added the system property drools.dialect.mvel.strict=false
I see that a system property has been applied to my application in jvisualvm
But I get the same error with "using strict mode".

How can I disable strict mode in drools?

+1
source share
1 answer

Here's how to do it with Java:

  KnowledgeBuilderConfiguration kbConfig = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(); kbConfig.setProperty("drools.dialect.mvel.strict", "false"); KnowledgeBuilder kBuilder = KnowledgeBuilderFactory.newKnowledgeBuilder( kbConfig ); 

Although setting the property should be ok. β€œMaybe look at the error to find a workaround?”

+1
source

Source: https://habr.com/ru/post/1204190/


All Articles