Skip to content

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

Description

@mov37

在 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions