0 Replies Latest reply on Sep 11, 2013 6:37 AM by Hitesh .

    creating package snapshot in guvnor 6.0 cr3

    Hitesh . Newbie

      guvnor5.png

       

      what is the equivalent process of creating snapshot for deployment in guvnor 6.0 cr3?

      How can one deploy rules written using guvnor and run it from java application.

       

      with guvnor 5.5, we had:

      public static KnowledgeBase readKnowledgeBase() throws Exception {    

           KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "SomeAgent" );    

           kagent.applyChangeSet( ResourceFactory.newClassPathResource( "changeset.xml" ) );    

           KnowledgeBase kbase = kagent.getKnowledgeBase();        

           kagent.dispose();       

           return kbase;

      }

      and changeset.xml had snapshot url.

       

      I understand the top level architectural changes in the guvnor 6.0 or rather drools workbench.

      But I could'nt find a way to deploy rules and execute from an java application.