org.activiti.engine.impl.calendar.AdvancedSchedulerResolverWithoutTimeZone Maven / Gradle / Ivy
The newest version!
package org.activiti.engine.impl.calendar;
import org.activiti.engine.api.internal.Internal;
import org.activiti.engine.runtime.ClockReader;
import java.util.Date;
import java.util.TimeZone;
/**
* Resolves a due date using the original Activiti due date resolver. This does not take into account the passed time zone.
*
*/
@Internal
public class AdvancedSchedulerResolverWithoutTimeZone implements AdvancedSchedulerResolver {
@Override
public Date resolve(String duedateDescription, ClockReader clockReader, TimeZone timeZone) {
return new CycleBusinessCalendar(clockReader).resolveDuedate(duedateDescription);
}
}