SimulationRepository repo = SimulationRunner.runSimulation("BPMN2-TwoUserTasks", out, 10, 2000, "default.simulation.rules.drl");
assertNotNull(repo);
WorkingMemorySimulationRepository wmRepo = (WorkingMemorySimulationRepository) repo;
wmRepo.fireAllRules();
assertEquals(4, wmRepo.getAggregatedEvents().size());
assertEquals(50, wmRepo.getEvents().size());
AggregatedSimulationEvent event = wmRepo.getAggregatedEvents().get(0);
if (event instanceof AggregatedEndEventSimulationEvent) {
assertNotNull(event.getProperty("minProcessDuration"));
assertFalse(event.getProperty("activityId").equals(""));
}
event = wmRepo.getAggregatedEvents().get(1);
assertFalse(event.getProperty("activityId").equals(""));
assertNotNull(event.getProperty("minExecutionTime"));
event = wmRepo.getAggregatedEvents().get(2);
assertFalse(event.getProperty("activityId").equals(""));
assertNotNull(event.getProperty("minExecutionTime"));
event = wmRepo.getAggregatedEvents().get(3);
assertNotNull(event.getProperty("minExecutionTime"));
wmRepo.close();
}