Advertisement
Guest User

Untitled

a guest
Jan 26th, 2012
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     String url = "http://localhost:9080/guvnor-5.3.0";
  2.         DroolsGuvnorConnector connector = new DroolsGuvnorConnector(url);
  3.         List<DroolsGuvnorPackage> packages = connector.getPackages();
  4.         for (DroolsGuvnorPackage pkg : packages){
  5.             List<DroolsGuvnorScenario> scenarioList = pkg.getScenarios();
  6.             //pkg.executeAllScenarios();
  7.             for (DroolsGuvnorScenario scenario:scenarioList){
  8.                 System.out.println(scenario);
  9.                 //if (scenario.execute()){
  10.                 //  System.out.println(scenario.getAuditLog());
  11.                 //
  12.                 //} else {
  13.                 //}
  14.             }
  15.         }
Advertisement
RAW Paste Data Copied
Advertisement