use of org.activiti.crystalball.simulator.processengine.jobexecutor.SimulationDefaultJobExecutor in project Activiti by Activiti.
the class AcquireJobNotificationEventHandler method init.
@Override
public void init() {
log.info(jobExecutor.getName() + " starting to acquire jobs");
jobExecutor.start();
SimulationEvent event = new SimulationEvent.Builder(SimulationEvent.TYPE_ACQUIRE_JOB_NOTIFICATION_EVENT).simulationTime(SimulationRunContext.getClock().getCurrentTime().getTime()).property(((SimulationDefaultJobExecutor) jobExecutor).getAcquireJobsRunnable()).build();
SimulationRunContext.getEventCalendar().addEvent(event);
}
Aggregations