Save data locally when offline and sync when online

Is there any way to have the application run offline as it would when online and simply run all the workflow that was initiated while offline when a connection is found and keep repeating this until the uploading is successful.

Allot of writes are made to the database and the sequence in which this is entered should remain the same as well.

Is this possible ?

Did you ever get an answer for this?

unfortunately not, but i am hopeful that a solution will be presented in the near future