Skip to content

Edit Form with autosave

bruno.buzzi edited this page Oct 5, 2015 · 5 revisions

This is one of the more complex interactions between Orbeon and the Persistence layer.
1- Orbeon get the form definition for the requested form (app + form-name) (get)
2- Orbeon find out if the form has any draft in the repository (post)
3- If the form has any draft ask the user (via dialog popup) to open the drafts (autosaved) or the current form.
4.1- Orbeon get the data/draft of the form to be edited (app + form-name + document-id) (get)
4.1.1- Orbeon do a put to the persistence layer to store the form instance (app + form-name + document-id) (put)
4.2- If the form has more than one draft open a Summary with all drafts.
[For 4.2 iteration see] (New-Form-with-more-than-one-draft)