Does the event declaration in one drool file has an effect in another drool file also?
Issue
-
I have declared
myObjectas aneventinrules1.drlfile, and I have written onerule Ainrules2.drlfile, which now (based on thedeclaration) treatsmyObjectas anevent. -
Furthermore, I am writing a
rule Binrules2.drl. I am using the samekBasefor all rules. -
However, I am not declaring
myObjectas an event inrules2.drl. -
Does
rule BtreatmyObjectas anevent, given that it was declared as an event in a differentdrlfile (namelyrules1.drl)? -
Do I need to declare
myObjectas an event insiderules2.drlas well? Or it is sufficient that I have declared it as an event inrules1.drl?
Environment
- Red Hat JBoss BRMS 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.