JBPM 6 - 1.1 - Creating Simple Process

From Training Material
Revision as of 14:20, 29 November 2017 by Fstachecki (talk | contribs) (→‎Creating Simple Process)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

JBPM 6 - 1.1 - Creating Simple Process 创建简单流程

Scenario 场景

  • We are going to recruit people
我们要招人
  • At first the company is small, so it involves only interviewing people over the phone
起初公司规模小,所以只需要电话面试即可
  • Later more things to the process will be added
以后会有更多的东西加入流程里
  • We will use this example over the most of the materials
我们将在大部分教材中使用这个例子

Hrproj.employee recruitment.png

Creating Organization Unit, repository, project and package 创建组织单元、库、项目和包

Jbpm orgaizing konwoledge.png

  1. Creating Organizational Unit
    1. Log in as krisv
    2. Authoring/Administration
    3. Organization Units/Manage Organization Units/Add
    4. Name: npou / Owner: NobleProg Ltd
  2. Creating Repository
    1. Authoring/Administration
    2. Repositories/New Repository
    3. Repository Name: nprep/Organizational Unit: npou
  3. Creating Project
    1. Authoring/ Project Authoring
    2. Switch to npou/nprep
    3. New Item/Project
    4. Resource Name: npproj1
    5. Group ID: nppack

Creating Simple Process

  1. Creating simple diagram
    1. Authoring/Project Authoring
    2. New Item/Business Process/Name: emp_recruitment1
    3. Create User Task, set
      • Name HT Phone Interview
      • Task Name to HT Phone Interview
      • Actor: krisv
    4. Validate the process
    5. Save, check in with "Added Phone Interview Task" message

Deploying and Executing

  1. Deploy the process
    1. Open Project Editor
      ClipCapIt-150813-131445.PNG
    2. Project Editor/Build & Deploy
      JBPM Build&Deploy.png
    3. Process Management/Process Definitions
    4. Actions/Start
  2. Check whether Instance is running
    1. Process Management/Process Instances
  3. Performing a task
    1. Tasks/Task List
    2. Actions/Start
    3. Details / Work / Complete
  4. Check the Instance
    1. Process Management / Process Instances / Completed
    2. View Instance log of the task

Optional Browsing Database for completed instances and tasks

  1. Download SQL Workbench
  2. Login to /home/installuser/jbpm-db (username sa, no password)
  3. select * from taskevent;