Search in sources :

Example 1 with MapBusinessCalendarManager

use of org.activiti.engine.impl.calendar.MapBusinessCalendarManager in project Activiti by Activiti.

the class ProcessEngineConfigurationImpl method initBusinessCalendarManager.

protected void initBusinessCalendarManager() {
    if (businessCalendarManager == null) {
        MapBusinessCalendarManager mapBusinessCalendarManager = new MapBusinessCalendarManager();
        mapBusinessCalendarManager.addBusinessCalendar(DurationBusinessCalendar.NAME, new DurationBusinessCalendar(this.clock));
        mapBusinessCalendarManager.addBusinessCalendar(DueDateBusinessCalendar.NAME, new DueDateBusinessCalendar(this.clock));
        mapBusinessCalendarManager.addBusinessCalendar(CycleBusinessCalendar.NAME, new CycleBusinessCalendar(this.clock));
        businessCalendarManager = mapBusinessCalendarManager;
    }
}
Also used : DurationBusinessCalendar(org.activiti.engine.impl.calendar.DurationBusinessCalendar) MapBusinessCalendarManager(org.activiti.engine.impl.calendar.MapBusinessCalendarManager) DueDateBusinessCalendar(org.activiti.engine.impl.calendar.DueDateBusinessCalendar) CycleBusinessCalendar(org.activiti.engine.impl.calendar.CycleBusinessCalendar)

Aggregations

CycleBusinessCalendar (org.activiti.engine.impl.calendar.CycleBusinessCalendar)1 DueDateBusinessCalendar (org.activiti.engine.impl.calendar.DueDateBusinessCalendar)1 DurationBusinessCalendar (org.activiti.engine.impl.calendar.DurationBusinessCalendar)1 MapBusinessCalendarManager (org.activiti.engine.impl.calendar.MapBusinessCalendarManager)1