惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Security Archives - TechRepublic
Security Archives - TechRepublic
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
C
Check Point Blog
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Forbes - Security
Forbes - Security
IT之家
IT之家
L
LINUX DO - 最新话题
N
News and Events Feed by Topic
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
雷峰网
雷峰网
N
News | PayPal Newsroom
The Last Watchdog
The Last Watchdog
V
Visual Studio Blog
月光博客
月光博客
Microsoft Azure Blog
Microsoft Azure Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Webroot Blog
Webroot Blog
TaoSecurity Blog
TaoSecurity Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Schneier on Security
Schneier on Security
P
Privacy International News Feed
G
Google Developers Blog
博客园 - 聂微东
博客园 - 叶小钗
M
MIT News - Artificial intelligence
Apple Machine Learning Research
Apple Machine Learning Research
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Simon Willison's Weblog
Simon Willison's Weblog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
宝玉的分享
宝玉的分享
H
Hacker News: Front Page
Martin Fowler
Martin Fowler
L
Lohrmann on Cybersecurity
G
GRAHAM CLULEY
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
T
The Exploit Database - CXSecurity.com
S
Security @ Cisco Blogs
博客园_首页
AWS News Blog
AWS News Blog
P
Proofpoint News Feed
人人都是产品经理
人人都是产品经理
Help Net Security
Help Net Security
Google DeepMind News
Google DeepMind News
T
Threatpost

博客园 - lightsong

Micro Frontends extending the microservice idea to frontend development What is Nx? Smart Monorepo Build System & CI Build and Query Knowledge Graphs with LLMs WizMap AI Code Review Claude Code Awesome Claude Agents - 26-agent AI Development Team (open source) WezTerm Herdr Zellij playwright-cli branch vs worktree Ralph Loop Browserbase Skills The Complete Beginner's Guide to GSD (Get Shit Done) Framework for Claude Code A Claude Code Skills Stack: How to Combine Superpowers, gstack, and GSD Without the Chaos Casdoor Harness engineering for coding agent users The 8 Levels of Agentic Engineering assistant-ui vs copilotkit vs tambo Apache Casbin Agentic AI-Powered HR Automation Instant CV Intelligence for Modern Hiring Teams Python + LangGraph + FastAPI langfuse contextvars Agent Skills Temporal + LangGraph: A Two-Layer Architecture for Multi-Agent Coordination Building Generative AI Services with FastAPI DeepAgent vs LangGraph Plan-and-Execute AI-Native Software Delivery 动态表单EAV模型(Entity-Attribute-Value模型)和JSON字段 ClickHouse® is a real-time analytics database management system GRAPH RAG 数仓建模——维度表详细讲解 涌现能力 The 5W2H Problem-Solving Method 前端如何直接上传文件夹 docker状态混乱修复(如果出现容器stop不了问题,报Permission denied)
Ducky - BPMN 工作流管理系统
lightsong · 2025-11-16 · via 博客园 - lightsong

Ducky - BPMN 工作流管理系统

https://github.com/fanqingsong/ducky/tree/main

一个基于 FastAPI 和 SpiffWorkflow 的 BPMN 2.0 工作流管理系统,提供完整的流程定义管理、实例执行和可视化功能。

功能特性

核心功能

  • 流程定义管理:创建、编辑、删除 BPMN 流程定义
  • 流程实例管理:查看和管理流程执行实例
  • 工作流执行:支持用户任务、脚本任务、条件分支等
  • 任务拓扑图:可视化展示任务执行状态(已完成/当前/待执行)
  • 执行流程图:展示完整的工作流执行过程

技术特性

  • 🚀 FastAPI:高性能异步 Web 框架
  • 🔄 SpiffWorkflow:BPMN 2.0 工作流引擎
  • ⚛️ React + Ant Design:现代化前端界面
  • 🐳 Docker:容器化部署
  • 📊 SQLite:轻量级数据库

使用指南

1. 流程定义管理

在"流程定义管理"页面,你可以:

  • 创建流程:点击"新建"按钮,填写流程名称和 BPMN XML 定义
  • 编辑流程:点击"编辑"按钮修改流程定义
  • 查看流程:点击"查看"按钮查看完整的 BPMN XML
  • 删除流程:点击"删除"按钮删除流程定义

2. 工作流演示

在"工作流演示"页面,你可以:

  1. 选择流程:从下拉列表中选择一个流程定义
  2. 创建实例:点击"创建流程实例"按钮
  3. 填写表单:根据当前任务填写表单数据
  4. 执行步骤:点击"执行下一步"继续工作流
  5. 查看结果:工作流完成后查看执行结果

3. 流程实例管理

在"流程实例管理"页面,你可以:

  • 查看实例列表:查看所有流程实例及其状态
  • 查看详情:点击"查看详情"查看实例信息
  • 查看拓扑图:在详情页切换到"任务拓扑图"标签,查看任务执行拓扑

4. 执行流程图

在"执行流程图"页面,你可以查看:

  • 系统整体流程:从选择流程到完成的整体流程
  • 创建实例流程:创建流程实例的详细步骤
  • 执行步骤流程:执行工作流步骤的详细流程
  • 状态转换图:工作流状态之间的转换
  • 错误处理流程:错误处理和恢复机制

BPMN 流程定义

支持的元素

  • 开始事件 (Start Event)
  • 结束事件 (End Event)
  • 用户任务 (User Task):需要用户输入
  • 脚本任务 (Script Task):自动执行 Python 脚本
  • 排他网关 (Exclusive Gateway):条件分支
  • 顺序流 (Sequence Flow):连接元素

用户任务表单字段

支持的表单字段类型:

  • string:文本输入
  • boolean:布尔值(是/否)
  • enum:枚举选择
  • long:整数
  • double:浮点数

示例流程

项目预置了 5 个示例流程,用于学习和测试:

  1. 01-简单流程:最简单的流程,无任务
  2. 02-用户任务流程:包含用户任务的流程
  3. 03-条件分支流程:包含条件判断的流程
  4. 04-审批流程:包含审批逻辑的流程
  5. 05-订单处理流程:复杂的订单处理流程

详细说明请参考 README_SAMPLES.md

出处:http://www.cnblogs.com/lightsong/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。