title: Deprecated code of drools to version 6.2
body: <p>I have an old and deprectaed code of drools, this code can read a rule file (drl) outside of the container and can use any Value Object and any class.</p>
  
  <pre><code>            CommandExecutor ksession;
              KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
              String file = System.getenv("DOMAIN_HOME")+"/mydrls/business.drl";
              kbuilder.add(ResourceFactory.newFileResource(file), ResourceType.DRL);
              KnowledgeBase kbase = kbuilder.newKnowledgeBase();
              ksession = kbase.newStatelessKnowledgeSession();
              DataTest data = new DataTest();
              data.setAge(25);
              List cmds = new ArrayList();
              cmds.add( CommandFactory.newInsert( data ) );
              ksession.execute(CommandFactory.newBatchExecution( cmds ));
  </code></pre>
  
  <p>How I can do the same thing but with drools version 6.2?</p>