com.netgrif.application.engine.workflow.domain.triggers.DateTimeTrigger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.workflow.domain.triggers;
import java.time.LocalDateTime;
import java.time.format.DateTimeParseException;
/**
* Time trigger that will execute task at specified date and time in specified format (e.g. '2011-12-03T10:15:30').
*
* @see String format
* @see ISO-8601
*/
public class DateTimeTrigger extends TimeTrigger {
/**
* Creates new DateTimeTrigger from specified string in ISO-8601 date time format (e.g. '2011-12-03T10:15:30').
*
* @param timeString date and time string in specified format
* @throws DateTimeParseException if the string cannot be parsed into DateTime
* @see String format
* @see ISO-8601
*/
public DateTimeTrigger(String timeString) throws DateTimeParseException {
super(timeString);
startDate = LocalDateTime.parse(timeString);
}
@Override
public DateTimeTrigger clone() {
return new DateTimeTrigger(timeString);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy