Does the event declaration in one drool file has an effect in another drool file also?

Solution Verified - Updated -

Issue

  • I have declared myObject as an event in rules1.drl file, and I have written one rule A in rules2.drl file, which now (based on the declaration) treats myObject as an event.

  • Furthermore, I am writing a rule B in rules2.drl. I am using the same kBase for all rules.

  • However, I am not declaring myObject as an event in rules2.drl.

  • Does rule B treat myObject as an event, given that it was declared as an event in a different drl file (namely rules1.drl)?

  • Do I need to declare myObject as an event inside rules2.drl as well? Or it is sufficient that I have declared it as an event in rules1.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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content