Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 5.8
-
Fix Version/s: 5.9
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Similar to MessageEntity, TimerEntity should also contains this method override:
public Object getPersistentState() { Map<String, Object> persistentState = (Map<String, Object>) super.getPersistentState(); persistentState.put("duedate", getDuedate()); return persistentState; }
The sql 'updateTimer' in Job.xml already includes the duedate, it's just part of the persistentState map in the code.
I need to programmatically change the duedate and even though I can modify the duedate on the TimerEntity, the change does not trigger a flush to the DB with the new value.
Actually I stumbled over this also, yesterday. I already added it in
http://fisheye.codehaus.org/changelog/activiti/?cs=3150
We can remove it from MessageEntity then, though.