<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Custom Mail Notification and TriggerTime for Delayed Tasks</title><link>https://answers.axonivy.com/questions/1692/custom-mail-notification-and-triggertime-for-delayed-tasks</link><description>&lt;p&gt;Hi everybody&lt;/p&gt;
&lt;p&gt;If I create a Task with a delay, user that is responsible for that task gets an email after blocking period.&lt;/p&gt;
&lt;p&gt;How can be defined trigger time for sending delayed task email notifications - same as daily summary notification emails ?
I can not find &lt;code&gt;EMail.DailyTaskDelayed.TriggerTime&lt;/code&gt; in system properties of the engine.&lt;/p&gt;
&lt;p&gt;Thank you very much for clarify.&lt;/p&gt;
&lt;p&gt;Cheers
Andreas&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1692/custom-mail-notification-and-triggertime-for-delayed-tasks" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 05 Apr 2016 12:16:00 -0400</lastBuildDate><item><title>Answer by Andreas</title><link>https://answers.axonivy.com/questions/1692/custom-mail-notification-and-triggertime-for-delayed-tasks/1718</link><description>&lt;p&gt;Hi Reguel&lt;/p&gt;
&lt;p&gt;Thanks for explanaition. &lt;/p&gt;
&lt;p&gt;I recognized that sendDailyMailBean is triggered all the time. 
Unfortunately, there was a Date defined for Delay and Date.getDurationFromNow() was calculated precisely with time. &lt;/p&gt;
&lt;p&gt;Changing the field to Date and Time, the user can define Delay with exact Time for himself now, helps.&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/createTask_ZyPGz7C.jpg"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas</dc:creator><pubDate>Tue, 05 Apr 2016 12:16:00 -0400</pubDate><guid>https://answers.axonivy.com/questions/1692/custom-mail-notification-and-triggertime-for-delayed-tasks/1718</guid></item><item><title>Answer by Andreas</title><link>https://answers.axonivy.com/questions/1692/custom-mail-notification-and-triggertime-for-delayed-tasks/1696</link><description>&lt;p&gt;Hi Reguel&lt;/p&gt;
&lt;p&gt;Thank you. I did some tests with these classes.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;@Override
public void workflowChanged(WorkflowChangeEvent event) {
    IWorkflowEvent createEvent = wfManager.findWorkflowEvent(event.getId());

    if (createEvent.getEventKind() == WorkflowEventKind.EVENT_TASK_DELAY_EXPIRED) {
    }

    ICase newCase = createEvent.getCase();
    Ivy.log().info("new case created: "+newCase);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But there is no way to trigger daily for delayed tasks at specific time and send email to responsible.&lt;/p&gt;
&lt;p&gt;When exactly are these tasks triggered after restarting ivy?&lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;
&lt;p&gt;Cheers
Andreas&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas</dc:creator><pubDate>Fri, 18 Mar 2016 18:13:28 -0400</pubDate><guid>https://answers.axonivy.com/questions/1692/custom-mail-notification-and-triggertime-for-delayed-tasks/1696</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1692/custom-mail-notification-and-triggertime-for-delayed-tasks/1695</link><description>&lt;p&gt;There is no property which supports you in sending TaskMails for yet delayed Tasks. &lt;/p&gt;
&lt;p&gt;If you need to send mails for delayed tasks, you can implement it in the project with a workflow history listener, that will send a mail with a mail step if new delayed tasks we're created. &lt;/p&gt;
&lt;p&gt;More about workflow history and it's listeners can be found in this post: &lt;a href="http://answers.axonivy.com/questions/1193/listen-to-process-case-start-and-task-creation-start"&gt;http://answers.axonivy.com/questions/1193/listen-to-process-case-start-and-task-creation-start&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 18 Mar 2016 11:10:39 -0400</pubDate><guid>https://answers.axonivy.com/questions/1692/custom-mail-notification-and-triggertime-for-delayed-tasks/1695</guid></item></channel></rss>