title: What is the new accepted way of programmatically creating new drools rules in Drools 6?
body: <p>In short I want to create, edit and delete rules from a rules repository at runtime.  I'm having trouble figuring out how to do this in drools 6+.</p>
  
  <p>I know in a previous version of drools (&lt;= 5.6), that there was an XML representation of a .drl file and an API for working with it: <a href="https://docs.jboss.org/drools/release/5.6.0.Final/drools-expert-docs/html/ch04.html#d0e8052" rel="noreferrer">https://docs.jboss.org/drools/release/5.6.0.Final/drools-expert-docs/html/ch04.html#d0e8052</a>.</p>
  
  <p>The drools documentation as of 5.6 indicates this deprecated and it appears to be completely removed at 6.    I don't want to use an API that is already known to have no direct upgrade path.</p>
  
  <p>Exposing the Guvnor or Workbench UIs to users for rules editing is also not a good fit here due to workflow requirements and due to the complexity of the web user interfaces.  I want to create and manage the rules from Java code.</p>
  
  <p>I want a better method than string templating to a .drl file for creating new rules and modifying rules.  What exists for programmatically creating new rules from Java?  I have done a lot of searching but can't seem to find a set of Java API calls for this.</p>