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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.