Hi all,I am working on a project that requires timers for reminders and escalation. I have so far managed to deliver on that, with the following concern however; (I will display the code later) I set a timer to fire 24 Hours (Reminder) later after the start of a task, and it successfully does. However, after every 5 minutes from the successful execution, it keeps firing (sending mails) therefore flooding the respective inbox with reminder mails. All I want it to do is fire only once, here are the code snippets:1.
var dayHours = dac_daysBeforeReminder * 24;
var tempDays = "R1/PT" + dayHours + "H";
execution.setVariable('reminderdays', tempDays);
The above code is in a usertask "assignment" tasklistener. Note how I explicitly mention to execute only once ("R1/PT24H")[/]
Below is the timer definition:
2.
<boundaryEvent id="reminder" cancelActivity="false" attachedToRef="recommendationTask">
<timerEventDefinition>
<timeCycle>${reminderdays}</timeCycle>
</timerEventDefinition>
</boundaryEvent>
In the another instance I used the timeDate constraint but it didn't recognize my cron expression which was structured like e.g."2013-08-21T12:00:00"
using a string as the passing variable instead of a date object.What I would like help with is how to have the timer fire only once after the specified time period.My dev environment is as follows: Alfresco Enterprise 4.0.2 embedded with Activiti engine 5.7RegardsDarkRedd