Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个流口水文件。
当某些逻辑失败时,我想打印到 std:out 。就像,我的 System.out.println() 将打印到的同一个地方。
我怎样才能做到这一点?
您可以在规则的 RHS(when) 端使用 Java 代码。因此,简单地调用System.out.println()应该可以工作。
System.out.println()
你也可以传入一个记录器,但我认为你必须为此使用 Drools 全局变量。