org.activiti.engine.impl.calendar.AdvancedSchedulerResolver Maven / Gradle / Ivy
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;
/**
* Provides an interface for versioned due date resolvers.
*
*/
@Internal
public interface AdvancedSchedulerResolver {
/**
* Resolves a due date using the specified time zone (if supported)
*
* @param duedateDescription
* An original Activiti schedule string in either ISO or CRON format
* @param clockReader
* The time provider
* @param timeZone
* The time zone to use in the calculations
* @return The due date
*/
Date resolve(String duedateDescription, ClockReader clockReader, TimeZone timeZone);
}