This project includes the following Jmix commercial add-ons:
The project contains the data model, UI and BPMN definition demonstrating the process of preparing the workspace for new employees. The process involves functionality of BPM add-on.
The data model consists of the following entities:
When you start the application for the first time, it automatically deploys the Workspace preparation
process and creates the following users:
[admin]
- the standard admin with full rights to the application. However, he cannot start the workspace preparation process.Alice Brown [alice]
- hasHR Manager
role, can start the workspace preparation process and check completed requests.Robert Taylor [bob]
- hasSystem Administrator
role, can define software systems in the application and grant permissions to them.Linda Evans [linda]
- hasCoordinator
role and is set as coordinator for theOperations
department. Can allocate physical workspace for new employees working in the office.Susan Baker [susan]
- a new employee. Just a user, doesn't have access to any system activity mentioned above.
All users except admin
have password 1
. The admin
user has admin
password.
Below is a brief description of the business process of a workspace preparation for a new employee:
- The HR Manager creates a new request for an employee and starts the process by clicking a button in the Workspace requests view.
- The process creates a user task for a System Administrator. The user task opens the Software requests view, allowing the System Administrator to add
SoftwareRequest
records indicating permitted software to theWorkspaceRequest
entity. After the task is complete, the process writes a log message to theWorkspaceRequest
about granted permissions. - If the work type is
Office
, then the process creates a user task for a Coordinator of the employee's department. The user task opens a dialog where the coordinator enters a workspace description: where it is located, etc. After the task is complete, the process writes a log message to theWorkspaceRequest
entity with the workspace description. - If the work type is
Remote
, the process doesn't create any task for a Coordinator and goes straight to join with the System Administrator branch. - When tasks in both branches are finished, the process creates a user task for the HR Manager to check the completed request. The task shows the Review workspace request view.
- After the HR Manager completes the
Check request
task, the process ends.
- Run the application
- Login as
alice
with password1
. You are an HR manager and you can start workspace preparation processes.- Open Application -> Workspace requests
- Click Start workspace preparation process button
- Select
susan
in Employee field andOffice
in Work type field - Click OK
- Login as
bob
with password1
. You are a system administrator and you can grant permissions to software systems.- Open BPM -> My tasks
- Select
Grant system permissions
in the left panel and open the task in the right panel - In the Software requests window, create a few software request items. In the edit screen of each item, select a software system and tick the Permission granted checkbox. Then click OK in Software requests window.
- Login as
linda
with password1
. You are a coordinator and you can allocate physical workspace for office workers.- Open BPM -> My tasks
- Select
Allocate workspace
in the left panel and open the task in the right panel - Enter a workspace description in the Allocate workspace dialog, then click Complete task
- Login as
alice
again.- Open BPM -> My tasks
- Select
Check request
in the left panel and open the task in the right panel - Review the Process log field and click OK