title: Physical packages and package declaration in DROOLS
body: <p>What is the use of physical packages and package declaration in Drools. </p>
  
  <p>For eg,</p>
  
  <p>I have a rule, Myrule.drl in the physical package com.mycompany</p>
  
  <p>As I understand the package declaration in drools doesn't depend on the actual physical package the file lies in.</p>
  
  <p>So I can give in Myrule.drl as</p>
  
  <p>package com.sample;</p>
  
  <p>rule "my rule"
  when
  then
  end</p>
  
  <p>Can somebody help me to understand what is the relation between the physical package/folder that the drl file lies and the package declaration in drl file?</p>