All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netgrif.application.engine.workflow.domain.triggers.DateTimeTrigger Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.3.3
Show newest version
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