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。 –