This content has been marked as final.
Show 2 replies
-
1. Re: timer attribute names
kukeltje Feb 9, 2010 7:31 PM (in response to aguizar)Hmmm delay is also not quite right. Since with EL you can have fixed dates. Since the 'delay' in (business) time always results in a (due) date. So I'm kind of ambivalent.
The difference between duedate and duedatetime is more confusing.
-
2. Re: timer attribute names
aguizar Feb 10, 2010 12:32 AM (in response to kukeltje)Hmmm delay is also not quite right. Since with EL you can have fixed dates. Since the 'delay' in (business) time always results in a (due) date. So I'm kind of ambivalent.
Right. Maybe the problem is mixing date and duration in the same attribute. I looked at java.util.Timer and I'd like to have the same kind of clean, concise parameters.
What if:
- duedate was a string literal or EL expression that returned either Date or String. If the result is a String, parse a Date based on the configured date-time format.
- delay was a duration literal, calculated from the Date obtained from the duedate attribute or the current time if duedate is absent.
- duedatetime was phased out instead, since duedate would now permit string literals.