JBPM 6 - 1.4 - Actors and Groups

From Training Material
Revision as of 15:16, 17 November 2016 by Wang Hao (talk | contribs) (→‎Scenario)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

  1. Creating roles
    1. 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
  1. Creating users
    1. 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

  1. Copy emp_recuritment3 to emp_recuritment4
  2. Change the Process Name and ID accordingly
  3. Edit Phone Interview task properties
  4. Remove Actor property
  5. In Group property type np_hr_role
  6. Deploy and start the process

Claiming task

  1. Log in as greg
  2. In Tasks you should see unlock padloc icon
  3. Log in as bernard
  4. You cannot claim the task because bernard is not np_hr_role

Face to Face interview

Npproj.emp recruitment4.png

  1. Add new user task as show in the digram
  2. Assign the np_manager_role to Face to Face interview user task
  3. Create pv_f2f_candidate_suitable:Boolean process variable
  4. Create ut_f2f_candidate_suitable:Boolean task DataOutputSet in Face to Face interview task
  5. Create appropriate assignments
  6. Generate task forms
  7. Create appropriate conditions on the second gateway sequence flows
  8. Execute and test the process

Lanes

Sometimes it is a good idea to show different group assignments in lanes

Npproj.emp recruitment4 2.png