Next: Server-Side Data API Calls, Previous: Requests, Up: Server [Contents][Index]
A diff of the bucket data (see Bucket Diff) is posted to the server on step save. This operation is performed asynchronously—the client need not wait for the step to save before the next can be requested.
Since validations are shared between the server and the client (see Validation), saving should only fail in exception situations. Should a failure occur, the server will instruct the client to kick the user back to the previous step (kickback).
A step cannot be saved if it is locked; such attempts will result in an error.
To prevent a user from skipping steps, the client may post only one step past the last step that has successfully saved; otherwise, the user is kicked back to the last step that was saved.
Once those basic checks have passed, the document is updated:
This concept is tightly coupled with insurance; it should be factored out at some point.
Next: Server-Side Data API Calls, Previous: Requests, Up: Server [Contents][Index]