# Uses of Interface
org.kie.api.definition.rule.Rule

Packages that use Rule
Package
Description
org.kie.api
Base KIE API classes.
org.kie.api.definition
All classes to create definitions, as built by the KieBuilder from artifact resources, can be found here.
org.kie.api.event.kiebase
Events emitted while updating the definitions in the KieBase.
org.kie.api.event.rule
Events emitted while rules are executing.
org.kie.api.runtime.conf
org.kie.api.runtime.rule
The rule runtime classes.

- ## Uses of Rule in org.kie.api

  Methods in org.kie.api that return Rule
  Modifier and Type
  Method
  Description
  `Rule`
  KieBase.`getRule(String packageName, String ruleName)`
  Returns a reference to the `Rule` identified by the given package and rule names.

- ## Uses of Rule in org.kie.api.definition

  Methods in org.kie.api.definition that return types with arguments of type Rule
  Modifier and Type
  Method
  Description
  `Collection<Rule>`
  KiePackage.`getRules()`

- ## Uses of Rule in org.kie.api.event.kiebase

  Methods in org.kie.api.event.kiebase that return Rule
  Modifier and Type
  Method
  Description
  `Rule`
  AfterKieBaseLockedEvent.`getRule()`
  `Rule`
  AfterRuleAddedEvent.`getRule()`
  `Rule`
  AfterRuleRemovedEvent.`getRule()`
  `Rule`
  BeforeRuleAddedEvent.`getRule()`
  `Rule`
  BeforeRuleRemovedEvent.`getRule()`

- ## Uses of Rule in org.kie.api.event.rule

  Methods in org.kie.api.event.rule that return Rule
  Modifier and Type
  Method
  Description
  `Rule`
  ObjectDeletedEvent.`getRule()`
  `Rule`
  ObjectInsertedEvent.`getRule()`
  `Rule`
  ObjectUpdatedEvent.`getRule()`

- ## Uses of Rule in org.kie.api.runtime.conf

  Methods in org.kie.api.runtime.conf with parameters of type Rule
  Modifier and Type
  Method
  Description
  `boolean`
  TimedRuleExecutionFilter.`accept(Rule[] rules)`

- ## Uses of Rule in org.kie.api.runtime.rule

  Methods in org.kie.api.runtime.rule that return Rule
  Modifier and Type
  Method
  Description
  `Rule`
  ConsequenceException.`getRule()`
  `Rule`
  Match.`getRule()`
  `Rule`
  PropagationContext.`getRule()`
  The rule that caused the working memory action that created this PropagationContext.
  `Rule`
  RuleContext.`getRule()`