SimulationStepImpl step11 = new SimulationStepImpl(path1,
0);
List<Command> cmds11 = step11.getCommands();
cmds11.add(new NewKnowledgeBuilderCommand( ) );
cmds11.add(new SetVariableCommandFromLastReturn(World.ROOT,
KnowledgeBuilder.class.getName()));
cmds11.add(new KnowledgeBuilderAddCommand(ResourceFactory.newByteArrayResource(str.getBytes()),
ResourceType.DRL,
null));
cmds11.add(new NewKnowledgeBaseCommand(null));
cmds11.add(new SetVariableCommandFromLastReturn(World.ROOT,
KnowledgeBase.class.getName()));
cmds11.add(new KnowledgeBaseAddKnowledgePackagesCommand());
KnowledgeSessionConfiguration ksessionConf = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
ksessionConf.setOption(ClockTypeOption.get("pseudo"));
cmds11.add(new NewStatefulKnowledgeSessionCommand(ksessionConf));
cmds11.add(new SetVariableCommandFromLastReturn(World.ROOT,
StatefulKnowledgeSession.class.getName()));
List list = new ArrayList();
cmds11.add(new SetGlobalCommand("list",
list));