Ensuring Data Concurrency between Session disconnection
Content was last updated in 06.22.02-00
Revision History
Version No. | Reference No. | Changes |
06.22.02-00 | R2-17083 | Data concurrency is extended to Graphical Scheduler (scenario#3 and #4) |
06.01.13-00 | R2-16793 | Ensuring data concurrency between Planning Order and Whiteboard during session disconnection |
Imagine this — You are talking on phone with someone, it is a free-flowing conversation, and without you knowing, the line disconnects but you still keep talking at your end. By the time you realize there could be a lot that you would have said. At this point, if you re-connect the call a few minutes later, you would ideally expect to pick-up the conversation from where it got dropped (may be the conversation was significant, and you don't want to repeat it all). Else, you might want to re-do the talk all over again, if it seems convenient.
We have brought in something similar in R2 Labor. During a scenario where an Order is opened in multiple sessions of R2 Labor and there is a session disconnection. In such case, whenever you reconnect, the system gives you an option to start-over from where you had got disconnected or to start-over all from scratch as if nothing happened.
Functionality Covered
Scenario #1: Multiple tabs of Whiteboard are open
Let's say, you had opened more than one active sessions of Whiteboard, and one or more Order was selected.
You had made some changes to the Order(s) and closed one such session without saving the data.
Now, when you re-open one or more of the same Order through any interface (Planning Order or Whiteboard or Graphical Scheduling), the system validates if the Order(s) being opened were previously open in any active sessions or not.
Only if the same Order is being re-opened in a new tab, system displays the 'Message Prompt' on the screen.
If more than one Order is being re-opened, then on the basis of the response to 'Message Prompt', all the Orders are re-opened or refreshed.
Scenario #2: Multiple tabs of Whiteboard and Planning Order are open
Let's say, you had opened more than one active sessions of Whiteboard and Planning Order, and one of the Orders in WB was opened through Planning Order..
You had made some changes to the Order(s) and closed one such session without saving the data.
Now, when you re-open one or more of the same Order, the system validates if the Order(s) being opened were previously open in any active sessions or not.
And then system displays the 'Message Prompt', confirming if the Order session data needs to be restored or not.
Scenario #3: An order is modified in Graphical Scheduling (GS)
Let's say, you had opened an order in GS.
You had made some changes to the order and closed the session without saving the data.
Now, when you re-open the same order through any interface (Planning Order or Whiteboard or GS), the system validates if the order being opened were previously modified and closed without saving in any session.
If the order is opened in any session, you will see a prompt message either to restore the previous session with unsaved data or to start afresh.
If you select to restore the previous session data, the order opens in the selected interface with the unsaved data.
If you select to discard the changes and start afresh, the order opens by discarding the unsaved changes.
Scenario #4: Multiple orders are opened in Graphical Scheduling (GS)
Let's say, you had opened multiple orders in GS.
You had made some changes to one of the order or multiple orders and closed the session without saving the data.
Now, when you re-open the same order through any interface Whiteboard or GS, the system validates if the Order(s) being opened were previously open in any sessions or not.
If the Order(s) are opened in any session, you will see a prompt message either to restore the previous session with unsaved data or to start afresh.
If you select to restore the previous session data, the entire session restores.
If you select to discard the changes and start afresh, the orders opens by discarding the unsaved changes.
Message Prompt
The notification 'message prompt' mentioned in the three scenarios about is explained below.
'Hey! You have inactive session(s) with unsaved changes. What would you like to do?' with following three options -
Discard Changes & Start Fresh: System fetches the latest data and allow the user to continue from there on.
Restore Changes & Continue: System restores the data from the previous session and allow the user to continue from there on.
Cancel: System returns back to the 'Order Search' window, or from where you attempted to open the Order.

Figure 1.0: Message