在动作中流口水多个参数

Drools multiple params in action sout

我有以下代码 (Here is the decision table) 并且我需要将多个参数放入控制台输出。我该怎么做?

如果两个 组件逐行更改,则拥有两个操作条目可能会很有用。如果要附加常量,请将其添加到第 3 行的代码片段中:

ACTION             ACTION
System.out         System.out
print($param)      println($param + "!")
part 1             part 2
"The city is: "    $city.getName()
"No such city"     ""

作为替代方案,使用

ACTION
System.out
println(  + ", " +  )
both names
$country.getName(),$city.getName()