# workingflower **Repository Path**: 274440036/workingflower ## Basic Information - **Project Name**: workingflower - **Description**: ⭐⭐PHPworkflow工作流引擎,可以减少百分之80以上的代码工作量,可视化、专业化的PHP工作流。 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 16 - **Created**: 2023-06-27 - **Last Updated**: 2024-06-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # workingflower 工作流引擎1.0 PHP工作流引擎oop程序设计,麻雀虽少,五脏俱全,可用来学习工作流引擎项目,为了让大伙或自己用得更舒心,或者也为了让更多人认识或重新认识这个工作流引擎。支持 Laravel ThinkPHP等框架 前端设计器X6AntV logicFlow。如大家在使用的过程中如有啥问题,欢迎留言或进群交流! # 加群交流可加作者QQ:405784684 [在线体验] (http://1.14.171.224:8001) ## 其他依赖 流程引擎许依赖以下第三方库,如果工程中没有引入这些第三方扩展将会无法正常使用,需自行安装。 ``` composer composer require 'kphoen/rulerz' ``` #### 样例数据 ```json { "name": "leave", "displayName": "请假", "expireTime": "", "instanceUrl": "leaveForm", "edges": [ { "id": "83a5bf47-fd12-4cfd-9057-5fff3c63f974", "type": "transition", "endPoint": { "x": 400, "y": 220 }, "pointsList": [ { "x": 338, "y": 220 }, { "x": 400, "y": 220 } ], "startPoint": { "x": 338, "y": 220 }, "sourceNodeId": "08d771a4-58ea-4ffe-9d19-fc5082c7bed3", "targetNodeId": "c7a14904-ddb6-4072-a319-524272946ff0" }, { "id": "675367c1-f03b-478d-b78f-587f3d34d251", "type": "transition", "endPoint": { "x": 635, "y": 220 }, "pointsList": [ { "x": 520, "y": 220 }, { "x": 635, "y": 220 } ], "startPoint": { "x": 520, "y": 220 }, "sourceNodeId": "c7a14904-ddb6-4072-a319-524272946ff0", "targetNodeId": "d9a5fcd8-6545-400a-bd8b-105a133fa853" }, { "id": "440a8189-0b27-456c-860f-3566a9c2cd48", "text": { "x": 750, "y": 340, "value": "小于3天" }, "type": "transition", "endPoint": { "x": 760, "y": 340 }, "pointsList": [ { "x": 660, "y": 245 }, { "x": 660, "y": 340 }, { "x": 760, "y": 340 } ], "properties": { "expr": "f_day < 3", "type": "transition" }, "startPoint": { "x": 660, "y": 245 }, "sourceNodeId": "d9a5fcd8-6545-400a-bd8b-105a133fa853", "targetNodeId": "072d0a11-339e-4460-97bf-77ca5ca2464d" }, { "id": "90dd988a-5e52-4ac7-9b64-bcbcb6ec9596", "type": "transition", "endPoint": { "x": 820, "y": 320 }, "pointsList": [ { "x": 820, "y": 180 }, { "x": 820, "y": 320 } ], "startPoint": { "x": 820, "y": 180 }, "sourceNodeId": "5cbd67ee-3c86-4b77-9132-b33a7ffea4e1", "targetNodeId": "072d0a11-339e-4460-97bf-77ca5ca2464d" }, { "id": "fa27d0f1-a499-438b-8e16-408ba86c0b72", "type": "transition", "endPoint": { "x": 960, "y": 262 }, "pointsList": [ { "x": 820, "y": 360 }, { "x": 820, "y": 390 }, { "x": 1008, "y": 390 }, { "x": 1008, "y": 232 }, { "x": 960, "y": 232 }, { "x": 960, "y": 262 } ], "startPoint": { "x": 820, "y": 360 }, "sourceNodeId": "072d0a11-339e-4460-97bf-77ca5ca2464d", "targetNodeId": "1d20524b-8f03-4190-90f9-fa8caa199232" }, { "id": "6bc68fbd-e08d-47af-bc68-0691949d8995", "text": { "x": 720, "y": 160, "value": "大于3天" }, "type": "transition", "endPoint": { "x": 760, "y": 160 }, "pointsList": [ { "x": 660, "y": 195 }, { "x": 660, "y": 160 }, { "x": 760, "y": 160 } ], "properties": { "expr": "f_day >= 3", "type": "transition" }, "startPoint": { "x": 660, "y": 195 }, "sourceNodeId": "d9a5fcd8-6545-400a-bd8b-105a133fa853", "targetNodeId": "5cbd67ee-3c86-4b77-9132-b33a7ffea4e1" } ], "nodes": [ { "x": 320, "y": 220, "id": "08d771a4-58ea-4ffe-9d19-fc5082c7bed3", "text": { "x": 320, "y": 260, "value": "开始" }, "type": "start", "properties": { "state": "", "style": { "fill": "#FFFFFF", "color": "#000000", "width": 120, "height": 40, "stroke": "#000000", "strokeWidth": 2 } } }, { "x": 460, "y": 220, "id": "c7a14904-ddb6-4072-a319-524272946ff0", "text": { "x": 460, "y": 220, "value": "直接主管-用户1" }, "type": "task", "properties": { "type": "task", "scope": 1, "state": "", "style": { "fill": "#FFFFFF", "color": "#000000", "width": 120, "height": 40, "stroke": "#000000", "strokeWidth": 2 }, "assignee": 2, "taskType": "Major", "performType": "ANY", "backPermission": 1 } }, { "x": 820, "y": 160, "id": "5cbd67ee-3c86-4b77-9132-b33a7ffea4e1", "text": { "x": 820, "y": 160, "value": "经理-用户2" }, "type": "task", "properties": { "type": "task", "scope": 1, "state": "", "style": { "fill": "#FFFFFF", "color": "#000000", "width": 120, "height": 40, "stroke": "#000000", "strokeWidth": 2 }, "assignee": 3, "taskType": "Major", "performType": "ANY", "backPermission": 1 } }, { "x": 660, "y": 220, "id": "d9a5fcd8-6545-400a-bd8b-105a133fa853", "type": "decision", "properties": { "state": "", "style": { "fill": "#FFFFFF", "color": "#000000", "width": 120, "height": 40, "stroke": "#000000", "strokeWidth": 2 } } }, { "x": 820, "y": 340, "id": "072d0a11-339e-4460-97bf-77ca5ca2464d", "text": { "x": 820, "y": 340, "value": "HR 用户3" }, "type": "task", "properties": { "type": "task", "scope": 1, "state": "", "style": { "fill": "#FFFFFF", "color": "#000000", "width": 120, "height": 40, "stroke": "#000000", "strokeWidth": 2 }, "assignee": 4, "taskType": "Major", "performType": "ANY", "backPermission": 1 } }, { "x": 960, "y": 280, "id": "1d20524b-8f03-4190-90f9-fa8caa199232", "text": { "x": 960, "y": 320, "value": "结束节点" }, "type": "end", "properties": { "state": "", "style": { "fill": "#FFFFFF", "color": "#000000", "width": 120, "height": 40, "stroke": "#000000", "strokeWidth": 2 } } } ], "expireTime": "", "displayName": "", "instanceUrl": "", "instanceNoClass": "" } ``` # 相关资料