This content has been marked as final.
Show 5 replies
-
1. Re: Timer
cpob Jul 28, 2006 1:14 PM (in response to viegas)Should be rather simple.
You can see how to programmatically create a timer if you look at the CreateTimerAction source code. They build a Timer object.
I would created an action handler on the node-exit of the start state which would take the entered date, and then do simple java date mathDate newDate = new Date( enteredDate.getTime() - 2419200000 )
Where 2419200000 is 4 weeks (in milliseconds).
OrDate newDate = new Date( enteredDate.getTime() - (4 * 7 * 24 * 60 * 60 * 1000) )
For the 4 weeks, 7 days in a week, 24 hours in day, so on and so on. -
2. Re: Timer
viegas Jul 31, 2006 5:29 AM (in response to viegas)where can I find the createTimerAction????
Thanks a lot for the tip -
-
4. Re: Timer
viegas Jul 31, 2006 6:13 AM (in response to viegas)I have another question, Where can I find the sintax for the due date, for the repeat and so on?
-
5. Re: Timer
kukeltje Jul 31, 2006 6:41 AM (in response to viegas)The same place I found it, the documentation.