process automation with bizagi - courses.cs.ut.ee · process automation with bizagi exercise 1...
TRANSCRIPT
![Page 1: PROCESS AUTOMATION WITH BIZAGI - courses.cs.ut.ee · PROCESS AUTOMATION WITH BIZAGI Exercise 1 Create a new project called VacationLeaveRequest . In this project create a new process](https://reader031.vdocuments.us/reader031/viewer/2022021623/5bc9fb0e09d3f26d178b8f19/html5/thumbnails/1.jpg)
PROCESS AUTOMATION WITH BIZAGI
Exercise 1
Create a new project called VacationLeaveRequest. In this project create a new process called Vacation
Leave Request, 1 lane corresponding to the actor Employee, 1 milestone Register, and 1 activity Register
Vacation Request connected to a start and an end event.
Exercise 2
In the data model, in the main (Master) entity VacationLeaveRequest specify the attributes (right click on
the entity and select option edit attributes):
Display Name Type
Request Date Date - Time
Start Date Date - Time
End Date Date - Time
![Page 2: PROCESS AUTOMATION WITH BIZAGI - courses.cs.ut.ee · PROCESS AUTOMATION WITH BIZAGI Exercise 1 Create a new project called VacationLeaveRequest . In this project create a new process](https://reader031.vdocuments.us/reader031/viewer/2022021623/5bc9fb0e09d3f26d178b8f19/html5/thumbnails/2.jpg)
Number of Days Integer
Applicant WFUSER (Entity -> System)
Exercise 3
Attach the following form to activity Register Vacation Request (using Controls -> Containers -> Group and
Layout -> 50%-50%):
![Page 3: PROCESS AUTOMATION WITH BIZAGI - courses.cs.ut.ee · PROCESS AUTOMATION WITH BIZAGI Exercise 1 Create a new project called VacationLeaveRequest . In this project create a new process](https://reader031.vdocuments.us/reader031/viewer/2022021623/5bc9fb0e09d3f26d178b8f19/html5/thumbnails/3.jpg)
Specifying the following policies:
Visible Editable Required
Request Date yes no yes
Applicant yes no yes (display attribute -> fullname)
Start Date yes yes yes
End Date yes yes yes
Number of Days yes no yes
Run the application.
Exercise 4
RequestDate must be automatically specified by the system through the “On Enter” expression setDate:
<VacationLeaveRequest.RequestDate>=DateTime.Today
attached to activity Register Vacation Request.
Exercise 5
Applicant must be automatically specified by the system through the “On Enter” expression setApplicant:
<VacationLeaveRequest.Applicant>= Me.Case.Creator.Id
attached to activity Register Vacation Request.
![Page 4: PROCESS AUTOMATION WITH BIZAGI - courses.cs.ut.ee · PROCESS AUTOMATION WITH BIZAGI Exercise 1 Create a new project called VacationLeaveRequest . In this project create a new process](https://reader031.vdocuments.us/reader031/viewer/2022021623/5bc9fb0e09d3f26d178b8f19/html5/thumbnails/4.jpg)
Exercise 6
NumberOfDays must be automatically specified by the system through the “On Save” expression
setNumDays attached to activity Register Vacation Request (Note: You must specify the additional variables
used EffectiveDurationMin and EffectiveDurationDay in the list of variables):
EffectiveDurationMin =
CHelper.getEffectiveDuration(Me,<VacationLeaveRequest.StartDate>,
<VacationLeaveRequest.EndDate>);
EffectiveDurationDay = ((EffectiveDurationMin / 60) / 8);
if(EffectiveDurationDay < 1){
CHelper.ThrowValidationError(" You must request at least one vacation day");
}else{
<VacationLeaveRequest.NumberofDays>= (EffectiveDurationMin / 60) / 8;
}
Run the application.
Esercise 7
NumberOfDays must be automatically specified by the system when Start Date or End Date change values.
Run the application.
Exercise 8
Create an organization hierarchy Director -> Manager -> Developer
![Page 5: PROCESS AUTOMATION WITH BIZAGI - courses.cs.ut.ee · PROCESS AUTOMATION WITH BIZAGI Exercise 1 Create a new project called VacationLeaveRequest . In this project create a new process](https://reader031.vdocuments.us/reader031/viewer/2022021623/5bc9fb0e09d3f26d178b8f19/html5/thumbnails/5.jpg)
and specify the following performers policies on activity Register Vacation Request:
Create 5 users: 1 Director, 2 Managers, 1 Developer and 1 Human Resources Employee
Run the application.
Exercise 9
Add activity Specify Project. The project can be selected from a list of projects in the form. Update process
model and data model and specify a form and the possible performers for this activity.
![Page 6: PROCESS AUTOMATION WITH BIZAGI - courses.cs.ut.ee · PROCESS AUTOMATION WITH BIZAGI Exercise 1 Create a new project called VacationLeaveRequest . In this project create a new process](https://reader031.vdocuments.us/reader031/viewer/2022021623/5bc9fb0e09d3f26d178b8f19/html5/thumbnails/6.jpg)
![Page 7: PROCESS AUTOMATION WITH BIZAGI - courses.cs.ut.ee · PROCESS AUTOMATION WITH BIZAGI Exercise 1 Create a new project called VacationLeaveRequest . In this project create a new process](https://reader031.vdocuments.us/reader031/viewer/2022021623/5bc9fb0e09d3f26d178b8f19/html5/thumbnails/7.jpg)
Run the application.
Exercise 10
Add a new activity Approve Leave Request to the model
Add to the data model a boolean attribute Approved to VacationLeaveRequest to specify if the request is
approved or not.
![Page 8: PROCESS AUTOMATION WITH BIZAGI - courses.cs.ut.ee · PROCESS AUTOMATION WITH BIZAGI Exercise 1 Create a new project called VacationLeaveRequest . In this project create a new process](https://reader031.vdocuments.us/reader031/viewer/2022021623/5bc9fb0e09d3f26d178b8f19/html5/thumbnails/8.jpg)
Define the form for Approve Leave Request:
Assign Approve Leave Request to every manager
![Page 9: PROCESS AUTOMATION WITH BIZAGI - courses.cs.ut.ee · PROCESS AUTOMATION WITH BIZAGI Exercise 1 Create a new project called VacationLeaveRequest . In this project create a new process](https://reader031.vdocuments.us/reader031/viewer/2022021623/5bc9fb0e09d3f26d178b8f19/html5/thumbnails/9.jpg)
Run the application and check that activity Approve Leave Request is not assigned to all managers.
Exercise 11
Assign Approve Leave Request to a manager different from the one executing Specify Project. To do this add
a WFUser attribute ProjectManager to VerificationLeaveRequest.
![Page 10: PROCESS AUTOMATION WITH BIZAGI - courses.cs.ut.ee · PROCESS AUTOMATION WITH BIZAGI Exercise 1 Create a new project called VacationLeaveRequest . In this project create a new process](https://reader031.vdocuments.us/reader031/viewer/2022021623/5bc9fb0e09d3f26d178b8f19/html5/thumbnails/10.jpg)
Define an “On Exit” action on activity Specify Project
![Page 11: PROCESS AUTOMATION WITH BIZAGI - courses.cs.ut.ee · PROCESS AUTOMATION WITH BIZAGI Exercise 1 Create a new project called VacationLeaveRequest . In this project create a new process](https://reader031.vdocuments.us/reader031/viewer/2022021623/5bc9fb0e09d3f26d178b8f19/html5/thumbnails/11.jpg)
The performer of Specify Project should be different from ProjectManager
Run the application and verify that activities Specify Project and Approve Leave Request are executed by
two different managers.
![Page 12: PROCESS AUTOMATION WITH BIZAGI - courses.cs.ut.ee · PROCESS AUTOMATION WITH BIZAGI Exercise 1 Create a new project called VacationLeaveRequest . In this project create a new process](https://reader031.vdocuments.us/reader031/viewer/2022021623/5bc9fb0e09d3f26d178b8f19/html5/thumbnails/12.jpg)
Exercise 12
Add activities Notify Acceptance and Notify Rejection:
Define the corresponding forms:
and assign their performer to every Human Resources Employee.
![Page 13: PROCESS AUTOMATION WITH BIZAGI - courses.cs.ut.ee · PROCESS AUTOMATION WITH BIZAGI Exercise 1 Create a new project called VacationLeaveRequest . In this project create a new process](https://reader031.vdocuments.us/reader031/viewer/2022021623/5bc9fb0e09d3f26d178b8f19/html5/thumbnails/13.jpg)
Define the business rules connected to the decision point.
Run the application.
Exercise 13
Export your project to a .bex file