简体   繁体   English

Drools Rest API - 过滤规则

[英]Drools Rest API - Filtering Rules

i'm using REST API to execute my rules on my kie server. 我正在使用REST API在我的kie服务器上执行我的规则。

I have 2 different rules using the same Object and when I call Drool API, it execute the 2 different rules. 我有2个不同的规则使用相同的对象,当我调用Drool API时,它执行2个不同的规则。

But I want to execute ONE specific rule. 但我想执行一个特定的规则。

Here what I'm using when I call the REST API : 这是我在调用REST API时使用的内容:

 <batch-execution> <insert out-identifier="ReturnedSchedule" return-object="true"> <test.a xmlns="http://test"> <a>1111111</a> <b>0</b> <c> </test.a> </insert> <fire-all-rules/> </batch-execution> 

I saw in documentation the parameter agendaFilter with fire-all-rules but it doesn't work. 我在文档中看到参数agendaFilter with fire-all-rules但它不起作用。

Any idea to help me ? 有什么好主意帮我吗?

如果有多个条件并且所有这些都是真的,并且如果你想只发射一个,那么你必须使用激活组

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM