0
我有两个java对象(比方说Parent和Child..child扩展父对象)。但我只需要指定规则触发器,而不是针对其子对象。流口水规则只指定为其父孩子而不是为其子女打火机
例:
when
$raw : Parent()
then
System.out.println(" Parent")
end
----
when
$raw : Child()
then
System.out.println(" Child")
end
如果我尝试注入子对象作为一个事实,它火两种。我不能使用不是儿童()bz我有很多child.Thanks
最好的问候, Nipuna。
这帮助了我很多。 Thanks.Appreciated。 –