cmds.add((GenericCommand<?>)CommandFactory.newSetGlobal("myGlobalObj", new MyObject("myglobalObj")));
cmds.add((GenericCommand<?>)CommandFactory.newInsert(new MyObject("obj1"), "myObject1"));
cmds.add((GenericCommand<?>)CommandFactory.newFireAllRules());
BatchExecutionCommandImpl batch = new BatchExecutionCommandImpl(cmds, "out");
ExecutionResults results = ksession.execute(batch);
System.out.println("Results = "+results);
Assert.assertNotNull(results);
Assert.assertEquals(1, results.getIdentifiers().size());