JBPM 6 - 1.4 - Actors and Groups
Jump to navigation
Jump to search
JBPM 6 - 1.4 - Actors and Groups
You will learn 你将学到
- How to create a new user
- 如何建立用户
- How to create a new group
- 如何建立组
- How to assign task to a user
- 如何分配任务给一个用户
- How a user can claim and release tasks assign to a group
- 如何一个用户可以领取和释放分配给组的任务
Scenario 场景
- NobleProg is growing and now more people will perform the tasks.
- 诺波在发展并且更多的人将做这个任务
- We will create np_hr_role with two people: isabel and greg
- 我们将建立一个np_hr_role,其中包含两个人:isabel 和 greg
- We will also create np_manager_role with one person: bernard
- 我们还将建立np_manager_role,其中只有一个人:bernard
- Manager will be responsible for face to face interview
- 经理将负责面对面的面试
Creating users instructions
- Creating roles
- edit /opt/jbpm-installer/wildfly-8.1.0.Final/standalone/configuration/roles.properties and add following lines (please note that the admin role has been added in order to grant the users permission to Workbench)
bernard=np_manager_role,admin isabel=np_hr_role,admin greg=np_hr_role,admin
- Creating users
- edit /opt/jbpm-installer/wildfly-8.1.0.Final/standalone/configuration/users.properies and add folowing lines
isabel=isabel greg=greg bernard=bernard
Group Assignment
- Copy emp_recuritment3 to emp_recuritment4
- Change the Process Name and ID accordingly
- Edit Phone Interview task properties
- Remove Actor property
- In Group property type np_hr_role
- Deploy and start the process
Claiming task
- Log in as greg
- In Tasks you should see unlock padloc icon
- Log in as bernard
- You cannot claim the task because bernard is not np_hr_role
Face to Face interview
- Add new user task as show in the digram
- Assign the np_manager_role to Face to Face interview user task
- Create pv_f2f_candidate_suitable:Boolean process variable
- Create ut_f2f_candidate_suitable:Boolean task DataOutputSet in Face to Face interview task
- Create appropriate assignments
- Generate task forms
- Create appropriate conditions on the second gateway sequence flows
- Execute and test the process
Lanes
Sometimes it is a good idea to show different group assignments in lanes