[英]Drools Error while deploying into KIE-server : Fire rule limit reached 10000
I am getting this below error in Drools while invoking via JSON.在通过 JSON 调用时,我在 Drools 中遇到以下错误。 But the same jar and request works fine after restart of the server.但是在重新启动服务器后,相同的 jar 和请求工作正常。 Not sure of what is the exact reason for this occurrence.不确定发生这种情况的确切原因是什么。
Error JSON Response :错误 JSON 响应:
{
"type": "FAILURE",
"msg": "Error calling container MotorPolicyRules_1.0.1: [PrePolicy.TW_OD:1 -- [TW_OD_Computation:3 - Get Max Discount:8] -- Fire rule limit reached 10000, limit can be set via system property org.jbpm.rule.task.firelimit or via data input of business rule task named FireRuleLimit",
"result": null
}
You're running into a limit whose purpose is to protect your application from looping rules.您遇到了一个限制,其目的是保护您的应用程序免受循环规则的影响。 Unless you have a very rare situation where you legitimately need to trigger the same rule 10,000 times (or 10,000 rules altogether), then you likely have an issue with how your rules are designed and should investigate.除非您遇到非常罕见的情况,即您合法地需要触发相同规则 10,000 次(或总共 10,000 条规则),否则您可能对规则的设计方式存在问题并且应该进行调查。 This exception is being thrown to alert you to this potentially dangerous situation.抛出此异常是为了提醒您注意这种潜在的危险情况。
(A legitimate use case for exceeding 10,000 rules would be a set of rule which need to act on multiple rows in a large spreadsheet.) (超过 10,000 条规则的合法用例是需要对大型电子表格中的多行进行操作的一组规则。)
Why you're hitting this limit could be a number of things, from how the rules and inputs are designed to how you're managing your sessions.达到此限制的原因可能有很多,从规则和输入的设计方式到您管理会话的方式。 You'll need to debug into your server the next time you run into this situation ( prior to restarting , clearly) and take a look around at what is going on and how you're passing information into the rule engine.下次遇到这种情况时(在重新启动之前,很明显),您需要调试到您的服务器,并查看正在发生的事情以及您如何将信息传递到规则引擎中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.