In this chapter we will cover the use of the Workflow subsystem in the Library sample application which can be downloaded by means of CUBA Studio.
Our task is to provide the application with the ability to create and keep track of electronic versions of books that are available in the library. The process of creating an electronic version must follow these steps:
-
An arbitrary system user creates an
EBook
object and specifies a publication for which an electronic version must be created. Then the scanning process begins. -
A user with the
Manager
role receives an assignment to approve or reject the book scanning. If the manager approves the scanning, the process continues to the next stage. Otherwise, the process finishes. -
After the manager approves this
EBook
, an assignment is created and sent to a user who has theOperator
role. The operator digitizes the book and, if successful, attaches a file containing the electronic version of the book to theEBook
. -
At the end of the process, the
EBook
object can be in one of the three states:-
Done
- scanning was successful and the object contains an attached file with the electronic version of the book. -
Failed
- scanning failed. -
Not approved
- scanning was not approved by the manager.
-