disable strict mode in drools

前端 未结 1 596
[愿得一人]
[愿得一人] 2021-01-27 02:01

I\'m getting error like Error: unable to resolve method using strict-mode: ...
I\'ve added system property drools.dialect.mvel.strict=false
I c

相关标签:
1条回答
  • 2021-01-27 02:30

    This is how it can be done from 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 a look at the error might help to find a workaround?

    0 讨论(0)
提交回复
热议问题