Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Autosaving to drafts folder

Avatar

Former Community Member
Hi all, i was just wondering if there was a feature to automatically save a form periodically intot he drafts folder (to avoid losing work if the session times out, or power loss, etc). I'm hoping theres a simple setting to get this functionality.



But in case there isn't what i was thinking to do (and please correct my logic if needed) was to create a custom component that would be exposed through a webservice that would be able to move/copy a task into the users draft queue. This service would be called periodically as the user progresses through the form (hopefully there is some type of timer event, worst comes to worst i'll call it when the user exits certain fields).



Now the issue is which api calls to use to move the task into the drafts queue. I have found TaskManager function changeQueueForTask() which takes the task id and the queue id. Now the question i have is how to get the id for the drafts queue? Or is this the wrong function call? Any help would be appreciated.



Thanks!
1 Reply

Avatar

Level 10
There is no such thing as a Draft queue. The item is put in a Draft state when you call the save method of the TaskManager API.



Jasmin