Search in sources :

Example 6 with SimpleTaskTrigger

use of eu.bcvsolutions.idm.core.scheduler.api.dto.SimpleTaskTrigger in project CzechIdMng by bcvsolutions.

the class DefaultSchedulerManagerIntegrationTest method getSimpleTrigger.

private SimpleTaskTrigger getSimpleTrigger(Task task) {
    SimpleTaskTrigger trigger = new SimpleTaskTrigger();
    trigger.setTaskId(task.getId());
    trigger.setFireTime(new DateTime());
    return trigger;
}
Also used : DateTime(org.joda.time.DateTime) SimpleTaskTrigger(eu.bcvsolutions.idm.core.scheduler.api.dto.SimpleTaskTrigger)

Aggregations

SimpleTaskTrigger (eu.bcvsolutions.idm.core.scheduler.api.dto.SimpleTaskTrigger)6 CronTaskTrigger (eu.bcvsolutions.idm.core.scheduler.api.dto.CronTaskTrigger)4 AbstractTaskTrigger (eu.bcvsolutions.idm.core.scheduler.api.dto.AbstractTaskTrigger)3 Task (eu.bcvsolutions.idm.core.scheduler.api.dto.Task)3 DateTime (org.joda.time.DateTime)3 DependentTaskTrigger (eu.bcvsolutions.idm.core.scheduler.api.dto.DependentTaskTrigger)2 IdmDependentTaskTrigger (eu.bcvsolutions.idm.core.scheduler.entity.IdmDependentTaskTrigger)2 CoreException (eu.bcvsolutions.idm.core.api.exception.CoreException)1 TaskTriggerState (eu.bcvsolutions.idm.core.scheduler.api.dto.TaskTriggerState)1 DryRunNotSupportedException (eu.bcvsolutions.idm.core.scheduler.api.exception.DryRunNotSupportedException)1 SchedulableTaskExecutor (eu.bcvsolutions.idm.core.scheduler.api.service.SchedulableTaskExecutor)1 SchedulerException (eu.bcvsolutions.idm.core.scheduler.exception.SchedulerException)1 AbstractIntegrationTest (eu.bcvsolutions.idm.test.api.AbstractIntegrationTest)1 Test (org.junit.Test)1 CronTrigger (org.quartz.CronTrigger)1 JobDetail (org.quartz.JobDetail)1 SimpleTrigger (org.quartz.SimpleTrigger)1 Trigger (org.quartz.Trigger)1 TriggerState (org.quartz.Trigger.TriggerState)1