WorkingFlower 2.0
WorkingFloer 介绍
⭐⭐PHP WorkingFlower是一个基于ThinkPHP 8.0的开源工作流引擎,适用于企业应用中常见的业务流程。它以轻量、简单、灵巧为理念设计,致力于成为简单集成的多环境支持工作流引擎。以下是WorkingFlower引擎流的详细介绍:
轻量级:WorkingFlower具有强大的扩展性。非常适合在资源有限的环境中使用。
简单性:WorkingFlower的表设计简单,流程组件也十分简洁,包括start、end、task、custom、subprocess、decision、fork、join等元素,易于理解和使用。同时,2.0版本基于ThinkPHP 框架 ORM实现。
灵巧性:WorkingFlower暴露了大量的可扩展接口,支持流程设计器、流程引擎的组件模型自定义,如节点自定义、属性自定义、表单自定义等。这意味着用户可以根据自己的需求来扩展和定制流程功能。
数据持久层面支持:1.0版本为jdbc数据库支持有限 2.0版本采用thinkORM实现持久 解决支持多类型数据库,目前支持的数据库有sqlite pgsql oracle、mysql、sqlserver mongo等。
总的来说,WorkingFloer是一个功能强大且易于集成的开源工作流引擎,适用于各种企业应用的业务流程。它以轻量、简单、灵巧为理念,旨在提高工作效率、降低生产成本并提升企业竞争力。
设计器图集
引擎样列数据
{
"name": "main01","display_name": "主流程含(请款子流程)","expire_time": "","instance_url": "leaveForm","instance_no_class": "","type": "workingflower:process","nodes": [
{
"id": "189dfefa-6603-46f2-89e4-23ec52eaeb32","type": "workingflower:wfSubProcess","x": 340,"y": 420,"properties": {
"form": "leaveForm","color": "#000000","theme": "#FFFFFF","width": "182","height": "48","stroke": "#1c4573","version": "1.0","process_name": "test04","stroke_width": "2"
},"text": {
"x": 340,"value": "子流程-请款"
}
},{
"id": "1238cc65-5757-484c-b31d-bd039645ceae","type": "workingflower:start","x": 180,"y": 180,"properties": [],"text": {
"x": 180,"y": 220,"value": "开始"
}
},{
"id": "3e517bac-d721-49e6-97d6-4e82debc8609","type": "workingflower:task","properties": {
"color": "#000000","field": [],"scope": "5","width": "120","height": "40","stroke": "#000000","assignee": "","task_type": "Major","perform_type": "ANY","stroke_width": "2","back_permission": "1"
},"value": "申请人"
}
},{
"id": "1fdcfa3b-29d0-4929-b6ae-9905982d75b4","type": "workingflower:decision","y": 280,"properties": []
},{
"id": "ac2dbf64-a4cb-40bd-8e5b-59d514edf2d6","x": 560,"scope": "1","assignee": "admin","text": {
"x": 560,"value": "经理审批"
}
},{
"id": "8aa0debf-4213-4aee-a5f8-19dfcc1cf152","type": "workingflower:end","x": 760,"text": {
"x": 760,"y": 320,"value": "结束节点"
}
}
],"edges": [
{
"id": "b628c46c-544f-4dc0-9881-fbccfa684ce0","type": "workingflower:transition","sourceNodeId": "1238cc65-5757-484c-b31d-bd039645ceae","targetNodeId": "3e517bac-d721-49e6-97d6-4e82debc8609","startPoint": {
"x": 198,"y": 180
},"endPoint": {
"x": 280,"pointsList": [
{
"x": 198,"y": 180
},{
"x": 280,"y": 180
}
]
},{
"id": "868c2422-3120-41bf-99ae-4d400a88210e","sourceNodeId": "3e517bac-d721-49e6-97d6-4e82debc8609","targetNodeId": "1fdcfa3b-29d0-4929-b6ae-9905982d75b4","startPoint": {
"x": 340,"y": 200
},"endPoint": {
"x": 340,"y": 255
},"pointsList": [
{
"x": 340,"y": 200
},{
"x": 340,"y": 230
},"y": 225
},"y": 255
}
]
},{
"id": "ec67871c-4efe-4a6b-b714-86a4a06742d4","sourceNodeId": "1fdcfa3b-29d0-4929-b6ae-9905982d75b4","targetNodeId": "ac2dbf64-a4cb-40bd-8e5b-59d514edf2d6","startPoint": {
"x": 365,"y": 280
},"endPoint": {
"x": 500,"properties": {
"expr": "f_day < 1000"
},"text": {
"x": 432.5,"value": "小于1000万"
},"pointsList": [
{
"x": 365,"y": 280
},{
"x": 500,"y": 280
}
]
},{
"id": "f5644192-adfd-45a7-9e82-d708b3d6a94e","targetNodeId": "189dfefa-6603-46f2-89e4-23ec52eaeb32","y": 305
},"y": 400
},"properties": {
"expr": "f_day > 1000"
},"y": 352.5,"value": "大于1000万"
},"y": 305
},"y": 400
}
]
},{
"id": "4858f4e7-09dd-46d7-8012-17236de45c11","sourceNodeId": "189dfefa-6603-46f2-89e4-23ec52eaeb32","startPoint": {
"x": 400,"y": 420
},"endPoint": {
"x": 560,"y": 300
},"pointsList": [
{
"x": 400,"y": 420
},{
"x": 560,"y": 300
}
]
},{
"id": "8eb2d863-d5ca-4b7a-be3c-ab72d971f57a","sourceNodeId": "ac2dbf64-a4cb-40bd-8e5b-59d514edf2d6","targetNodeId": "8aa0debf-4213-4aee-a5f8-19dfcc1cf152","startPoint": {
"x": 620,"endPoint": {
"x": 742,"pointsList": [
{
"x": 620,{
"x": 742,"y": 280
}
]
}
]
}
安装教程
1.composer create-project topthink/think tp
2.将工作流引擎拷贝至根目录或者扩展库
2.编辑composer.json,在autoload下增加以下内容
"psr-4": {
"lflow\\": "lflow/src"
}
3.执行 composer dumpautoload
4.composer require ‘kphoen/rulerz’
⭐交流群
QQ 321796659
使用案例
[后端工程] (http://43.138.153.216:8005/lms_admin/index.html)
[前端工程 vue设计器] (http://43.138.153.216:8003)
原文地址:https://blog.csdn.net/weixin_44974324/article/details/134557790
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。