Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nConcurrentMSort 模式下 b 参数影响了规则正常执行 #69

Open
mov-78 opened this issue Feb 29, 2024 · 0 comments
Open

nConcurrentMSort 模式下 b 参数影响了规则正常执行 #69

mov-78 opened this issue Feb 29, 2024 · 0 comments

Comments

@mov-78
Copy link

mov-78 commented Feb 29, 2024

nConcurrentMSort 执行模式下,当 b = false 时,即使前 n 个并发执行的规则执行成功了,也不会继续执行后续的 m-1 条规则了。

例如下面的规则:

rule "A1" salience 100
begin
  print(@name)
end

rule "A2" salience 100
begin
  print(@name)
end

rule "A3" salience 100
begin
  print(@name)
end

rule "B1" salience 3
begin
  print(@name)
end

rule "B2" salience 2
begin
  print(@name)
end

在执行 nConcurrentMSort(3, 2, ruleBuilder, false) 时,只有 B1 执行了,B2 没有执行。只有 b=true 时才会执行 B2

@mov-78 mov-78 changed the title nConcurrentMSort 模式下 b 参数 nConcurrentMSort 模式下 b 参数影响了规则正常执行 Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant