Search in sources :

Example 1 with SimulationDefaultJobExecutor

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);
}
Also used : SimulationEvent(org.activiti.crystalball.simulator.SimulationEvent) SimulationDefaultJobExecutor(org.activiti.crystalball.simulator.processengine.jobexecutor.SimulationDefaultJobExecutor)

Aggregations

SimulationEvent (org.activiti.crystalball.simulator.SimulationEvent)1 SimulationDefaultJobExecutor (org.activiti.crystalball.simulator.processengine.jobexecutor.SimulationDefaultJobExecutor)1