Creating bpmn process model

Project to build activiti process: https://blog.csdn.net/zc_ad/article/details/83271540

-----------------------------------------------

Seven core interfaces, 28 table


(A) seven interfaces

RepositoryService: providing a series of management processes and deploy process definitions API.

RuntimeService: the management and control of process instances in the process is running.

TaskService: to manage process tasks, such as task reminders, create tasks and task completion.

IdentityService: API to provide data management process roles, these roles include the relationship between the data user groups, users, and they are.

ManagementService: Provides process engine management and maintenance services.

HistoryService: the process of historical operating data, including the query, delete the historical data.

FormService: Forms service.

(B) 28 tables


1, act_ge_ generic data table, ge is the general abbreviation

2, act_hi_ history data table, the history Hi is the abbreviation, the corresponding interfaces HistoryService

3, act_id_ identity data table, id is an abbreviation of identity, the interface corresponding to IdentityService

4, act_re_ process storage table, Re is an abbreviation for the repository, the corresponding RepositoryService interfaces, storage and deployment process flow definition data and other static

5, act_ru_ runtime data table, ru for runtime abbreviation, the corresponding dynamic data RuntimeService TaskService interfaces and interfaces, and the process instance stored user tasks
----------------
Copyright Notice: This CSDN bloggers as "the Internet called the beast" in the original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/qq_29914837/article/details/91488282

-----------------------------------------------

Creating bpmn document workflow, I was drawn based on war paint bpmn's official website provides, there are other methods used IDEA plug-in painting, you can test yourself. activiti. Download activiti official website: https: //www.activiti.org/get-started, download 6.x version.

 

There is a activiti-app.war project after wars unpacked directory, this project placed under tomcat, tomcat8 own use, and then run. After running the access path is http: // localhost: 8080 / activiti-app, this time need to log in, use the default password on the account, account number: admin, password: test.

1. The design process provide Activiti activiti-app.war applications deployed to Tomcat webapps directory.

2. Create a new MySql database. Activiti-app.properties modify configuration files \ \ \ under activiti-app WEB-INF classes META-INF \ activiti-app directory, use the H2-memory database by default, you will be lost after the restart model creation, into use MySql database.

3. browser to access http: // localhost: 8080 / activiti-app, login accounts: admin: test

Creating bpmn process model

 

在创建一个bpmn模型时,model_name是文件的名称,model_key是工作流的key,如果部署两个相同key的bpmn模型时,第二个部署的bpmn模型版本号会加1,所以尽量不要创建相同key的bpmn模型。

 

创建一个bpmn流程模型最少需要有开始节点、任务节点、结束节点。只要将各个节点拖拉到画图界面就行了,在创建执行人的时候,只是将执行人写死(学习的时候才会这样,以后讲述如果动态获取执行人与候选人)。其实一个节点的属性有很多,name与assignments只是最基本的属性。

 

 

排它网关与并行网关这两个组件使用的比较多。

1)排他网关:对一个事件流向线的分支决策节点,决定着任务的流向

 

2)并行网关:通过一个节点,进行决策后,分别同时执行两个流程线,然后再归到另一个节点上统一走向结束节点

 

创建完后,将文件导出下载下来,放在resources项目下的目录中备用。

 

感觉这节讲的很简约,主要讲了一些bpmn创建工具,以及简单的使用,后面有使用到动态添加执行人,以及通过会签添加多个候选人在后续会降到,循序渐进嘛,就是这样的。第二章也没有讲如果快速部署、执行任务、查询历史等,第三章主要将的是activiti中的数据库表以及七大接口。


————————————————
版权声明:本文为CSDN博主「兮川」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/zc_ad/article/details/83272429

 

Guess you like

Origin www.cnblogs.com/Bkxk/p/11872749.html