Table of Contents

Concurrence Between Diagrams

With this implementation, two different ways of working with a diagram are going to be considered, one is the ‘editing’ mode and the other is the ‘reading’ mode.

‘EDITING’ MODE

This mode will allow editing and saving the diagram as we have been doing so far. The test tube that appears in the modeling tab when you first enter the diagram´s table will be changed by a pencil in this mode, to indicate that it is being edited.

‘READING’ MODE

This mode will allow editing and saving the diagram as we have been doing so far. The test tube that appears in the modeling tab when you first enter the diagram´s table will be changed by a eye in this mode (the eye will appear always by default), to indicate that it is being edited by other user.

The following buttons will be blocked:

The other tools will be unlocked.

With the tool: 'launch validation', there is a change in how it works, it will be unlocked in both modes, but in 'reading' mode it will only send the diagram to the executor and in 'editing' mode it will work as it has until now, it will save the diagram and send the diagram to the executor.

HOW A DIAGRAM IS CLOSED

When a diagram is open in ‘editing’ mode his status is_open goes to false when:

IMPLEMENTATION


From where a diagram can be opened?

What can we do in the canvas while we are in READING mode?

How can we change a diagram to EDITING status?

On the diagram, in the red icon bar there is a lock. That lock will be closed if we are in CLOSE or READING mode. It can only be opened if we are in READING mode. When opened it goes to the EDITING status. But it will only be possible if the diagram we have open is not being edited by another person or if the one who was editing it was the same user who tries to unlock it. If, by unlocking it, it is already being edited by another person, a modal window is displayed with the data of that user.

We can also pass the diagram to Editing mode with the keyboard shortcut: “Alt + 9”.

In the next picture we can se a blocking message when the diagram is used by another user:

When a diagram that is being edited is released? so another person can start to edit it?

Releasing a diagram means that we are no longer using it, it is considered that we stop using a resource when:

When all the resources that a user has open are released?

When we logout from the application button itself or when we close the browser (30 minutes later when the session expires), all the resources that the user had open will be closed.

particular case of the button ‘launch validation’

The button ‘Launch validation’ will be unlocked in the status EDITING and in the status READING, but works differently: in EDITING status it saves the diagram and sends it to the executor, in other hand in READING status just sends the diagram to the executor.

particular case of the button ‘export diagram’

The export diagram button is unlocked in READING and EDITING, but in EDITING status will be unlocked just if the diagram is saved.

How to know if a diagram is saved.

At the moment of saving a diagram the application compares if the one saving it is the same user that is editing it. If it’s not the same user that is editing the diagram, there will appear a window with the following sentence “Current diagram cannot be save because current user has not permission. Reload the diagram and try to save it again.”