Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhangzihan/nactivity
workflow engine activity activiti
https://github.com/zhangzihan/nactivity
activiti activities netcore netcoreworkflow workflow workflow-engine workflowengine workflows
Last synced: about 2 months ago
JSON representation
workflow engine activity activiti
- Host: GitHub
- URL: https://github.com/zhangzihan/nactivity
- Owner: zhangzihan
- License: apache-2.0
- Created: 2019-01-05T05:56:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T23:14:14.000Z (almost 2 years ago)
- Last Synced: 2023-03-07T11:28:10.465Z (almost 2 years ago)
- Topics: activiti, activities, netcore, netcoreworkflow, workflow, workflow-engine, workflowengine, workflows
- Language: C#
- Homepage:
- Size: 29.7 MB
- Stars: 61
- Watchers: 6
- Forks: 20
- Open Issues: 14
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
- awesome_ai_agents - Nactivity - workflow engine activity activiti (Building / Workflows)
- awesome_ai_agents - Nactivity - workflow engine activity activiti (Building / Workflows)
README
* 翻译自java activiti https://github.com/Activiti/Activiti
## 工作流系统数据库配置
* MySql创建数据库schema activiti
* 修改数据库配置 appsettings.json
```
"WorkflowDataSource":{
"providerName": "MySql",
"database": "activiti", //数据库名称
"connectionString": "server=localhost;database=数据库名称;uid=用户名;pwd=密码;Character Set=utf8"
}
```
* 使用MySql DbProvider resources\db\mapping\mappings.xml
``````
* SQLServer 创建数据库 activiti
* 修改数据库配置 appsettings.json
```
"WorkflowDataSource":{
"providerName": "Microsoft.Data.SqlClient",
"database": "activiti", //数据库名称
"connectionString": "server=localhost;database=数据库名称;uid=用户名;pwd=密码;"
}
```
* 使用SQLServer DbProvider resources\db\mapping\mappings.xml
``````
## 初始化数据库表结构
* 首次启动修改配置文件:resources\activiti.cfg.json 配置
* databaseSchemaUpdate配置说明:
* update:true 当数据库表结构发生变化时设置为true,系统会自动更新到新的表结构
* drop-create:系统会先删除表再创建表,该配置仅在开发时可用,nuget包引用该功能不可用
* create: 该配置仅在数据库为空时创建表结构,否则系统会无法启动,首次启动后请修改该配置为false,否则再次启动服务将无法启动。
*
```
{
"id": "processEngineConfiguration",
"type": "Sys.Workflow.Engine.Impl.Cfg.StandaloneProcessEngineConfiguration",
//web主机应用程序名称
"applicationName": "workflow",
//数据库更新策略,true=update drop-create create
"databaseSchemaUpdate": "数据库更新策略",
...
```* 手工创建数据库表:
* 创建表:
* 流程运行时表结构: resources\db\create\activiti.mysql.create.engine.sql
* 流程历史记录表结构:resources\db\create\activiti.mysql.create.history.sql
* 删除表
* 流程运行时表结构: resources\db\drop\activiti.mysql.drop.engine.sql
* 流程历史记录表结构:resources\db\drop\activiti.mysql.drop.history.sql## 运行BpmnWebTest项目,打开流程编辑器访问地址 http://localhost:11015/index.html
* 打开编辑器地址,点击下方CODE按钮,复制测试项目 resources\samples\ 目录下的bpmn文件内容,可以查看一些示例流程.
* 点击加号可以创建新的流程,复制samples\workflow.client\bpmn\请假单.bpmn文件内容,点部署,运行客户端示例。
* 编辑器代码 BpmnEditor