I have a business requirement of delegating a task to another user for a certain period of time. After the time interval is over , task should again delegated be to the original owner(prior user). It is possible through activiti database that we can revert the task assignee.
It's possible to use the delegateTask method of the TaskService to delegate a task to a different person and then use resolveTask to set the assignee back to the original owner. But there's no time interval you can specify.