Activity diagram

The management of the books at a library will serve as scenario for this sample. When a library user wants to lend a specific book, the library has to check whether the book is currently available. If this is the case, the user can lend the book but has to return it to the library within a certain period of time. Should he not return it on time, it is necessary to inform the library administration about the delay.

The following activity diagram is a high-level description of the steps that are executed in the library process:

 

The library process starts when a lend-out request is initiated by a library user.

The library process reads the current library asset and does some initialization.

If the requested book is currently not in the library a negative response is sent back to the library user.

If the book is available in the library the lend-out request is acknowledged, and the process waits for either the library user to return the book or for the lend-out period to pass by.

If the book is returned on time, the returning of the book is confirmed with a positive response.

If the lend-out period expires, the library administration is informed about the delay.

Library scenario