1 Star 0 Fork 186

吴先生 / orange-flowable

forked from orange-form / orange-flowable 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

新版功能

2.7 版本新上线功能如下。 线上演示环境 http://demo.orangeforms.com/flow(集中访问会相对较慢)。

  • 在线表单,支持独立部署,可接入多个应用系统,并根据 appCode 实现数据隔离。
  • 在线表单,支持第三方独立接入,目前仅以 若依 为例,并提供详细的接入文档和示例代码。
  • 在线表单,不修改任何 若依 默认代码的前提下,仅通过新增插件接口的方式,为 若依 集成橙单的在线表单功能,操作权限和数据权限均可在接入后实现完整兼容。
  • 在线表单,对于用户的已有系统,完全可以参照该方式动态接入橙单的在线表单模块。
  • 在线表单,新增支持 Tab 容器组件和左树右表布局。
  • 在线表单,组件渲染接口增加基于 Caffeine 的一级缓存,整体性能无限接近路由表单。
  • 在线表单,支持数据复制操作。
  • 在线表单,支持指定字段脱敏,同时提供多种内置脱敏类型和自定义策略。表单可根据需求进行更细粒度的脱敏控制。
  • 在线表单,支持基于自定义打印模板的详情打印和批量打印。
  • 工作流,流程工单支持基于自定义打印模板的详情打印和批量打印。
  • 工作流,可配置支持删除流程实例时,级联删除业务主表及其关联从表的数据。路由表单和在线表单工作流均已支持该功能。
  • 报表打印,渲染图片到单元格时,可选择是否缩放。目前已同时支持 PDF 和 Excel。
  • 基础架构,路由表单支持字段脱敏,同时生成相关的代码。
  • 基础架构,新增图片文件上传后的格式验证,修复图片上传的安全漏洞。
  • 基础架构,基础代码、权限、工作流、在线表单、报表打印和多租户,全部支持达梦数据库。
  • 基础架构,生成后的工程代码,包括基础组件、单体、微服务、多租户等可生成的复杂业务代码,100% 通过 SonarQube 的代码扫描。

友情感谢

选择橙单

橙单,具备极好代码生成能力的低代码工具。生成后工程全部源码交付,所有代码文件无任何橙单痕迹。就如同贵公司最优秀的技术团队亲手打造而得。欢迎加入我们的技术支持QQ群3 (392442075),您的技术问题我们会尽快给出回复。

  • 承诺,全网最低价和最宽松的商业版授权。让每一位开发者和每一个技术团队,都可拥有一套全部源码可控、商业授权无限制且功能完整的基础架构。
  • 理念,强大的代码生成能力,75% 以上的业务代码无需手写,即便面对极为复杂的功能需求,在高质量的代码之上进行二次开发,也能快速搞定。
  • 功能,工作流、在线表单、统计报表、自定义打印、多租户、用户权限、高级数据过滤权限、全类型数据字典等,全部深度支持,绝非简单集成。
  • 架构,拥抱云原生的架构设计理念,接口可正交化组合,业务服务自动组装各种关联数据 (含跨服务调用),让微服务下的服务拆分和库表拆分更加得心应手,彻底释放系统的弹性扩充能力。
  • 代码,顶级的代码强度,全覆盖的关联数据合法性验证,数据可见性防越权验证,完整规范且可追溯的日志体系,无限层级的树形数据高效读写。
  • 支持,30 万字的线上免费文档和技术专栏,助您快速吃透橙单。活跃的微信群技术支持,就连开车等灯时都在答疑。向日葵、TeamViewer 和 ToDesk,必要时可为您提供远程协助服务。

技术专栏

授人以鱼不如授人以渔。我们的专栏,是基于橙单低代码的基础架构,并对其进行了深入浅出和鞭辟入里的分析。专栏中的每一行代码,每一段注释,每一个技术点和每一步的思考过程,都是产品级强度的。请坚信 吃透橙单、收入翻番、效率乘三

在线演示

功能介绍

工作流

  • 优势能力,成熟的工作流产品价格昂贵,普通脚手架所集成的工作流模块功能有限,而橙单通过支持 静态路由表单工作流 的方式,有效的弥补了这一尴尬。
  • 代码生成,支持静态路由表单 + 工作流的代码生成。用户可在生成器配置表单和流程,并生成该流程的完整前后端业务代码。对于有些复杂的业务需求,可通过便利的二次开发搞定。
  • 在线表单,集成工作流和在线表单,无需写一行代码即可配置出相对复杂的工作流业务。
  • 工单管理,支持完整的工作流工单管理,可为不同流程配置独立的工单菜单和管理页面,并与现有的数据过滤权限完美整合。
  • 用户选择,支持基于角色、部门、岗位、本部门岗位、上级部门岗位、同级部门岗位、指定部门岗位、本部门领导岗位、上级部门领导岗位等候选组。
  • 基础功能,支持工单号的自定义编码、自定义流程节点状态、工单撤销和终止、流程干预、会签加签减签、待办已办转办、催办、抄送和传阅、保存草稿、撤回和驳回、待办任务自动通知、历史任务、审批详情列表、包含候选组的审批人列表、附件上传下载等。前端已集成美观的流程编辑器,同时支持流程图高亮及任务跟踪。
  • 业务数据,工作流支持主表及一对一、一对多、多对多从表数据的级联增删改查。同一表单可多次提交,新增数据和修改数据后均可提交审批流程。
  • 数据安全,严格且合理的数据安全校验,流程敏感数据 (如合同附件) 不会被越权访问和下载。同时还支持审批中数据与最终审批完成数据的分离,避免造成对其他业务关联表的数据污染,审批完成后可自动执行业务数据的同步。

静态表单

以下所有功能的前后端代码,均可通过橙单的低代码工具配置后生成。标准化接口和数据结构,可轻松实现正交化组合。

  • 前后端支持单表增删改查、字典列表、分组聚合查询、部分更新、批量删除、导入导出、上传下载。
  • 批量导入支持常量字典和数据表字典的反向翻译,比如文件存储的是“一年级”字符串,导入过程中会批量替换为对应的Id后插入数据表。
  • 前后端支持主表与一对一、一对多、多对多关联表的关联查询,分组聚合查询、虚拟字段的聚合计算,数据导出、级联添加、级联更新、级联删除。
  • 前后端支持主表与多对多中间表的批量插入、批量删除、单条删除、关联列表数据查询、未关联列表数据查询。
  • 前后端支持主表与字典表数据、一对一、一对多和多对多与字典表数据的关联查询。
  • 后台接口支持主表、一对一从表、一对多从表、多对多从表关联数据的单条和批量验证,会根据配置生成本地服务或跨服务远程调用的高性能数据验证。
  • 以上所有功能,均支持分布式跨库跨服务操作,接口保持不变,需要分布式事务的场景,会自动生成 Seata 相关的代码注解。需要远程数据关联查询的,会生成 FeignClient 调用接口,并自动完成数据组装。

在线表单

  • 前后端代码完全交付,甚至可配置为自己的项目包名。
  • 前后端代码无一丝混淆,且代码质量超高,极易学习和二次开发,同时支持单体和微服务架构。
  • 全新的可视化的拖拉拽编辑器,目前已经支持大部分常用组件、容器组件、高级业务组件,并提供标准化的自定义组件接入接口。
  • 支持独立部署,可接入多个第三方框架或业务系统,并根据 appCode 实现数据隔离。目前仅以 若依 为例,并提供详细的接入文档和示例代码。
  • 目前已支持 MySQL、PostgreSQL 和 Oracle。
  • 支持主从表联动。
  • 支持富文本、多图、多附件的上传和下载。
  • 支持主表数据、一对一从表及其字典数据的可配置性导出。
  • 支持主表数据和一对多从表数据的批量删除。
  • 可视化接口配置编辑器,支持多数据库、数据表、一对一表关联、一对多表关联和多种数据字典等。
  • 支持字典过滤、主表字段过滤、一对一从表字段过滤,同时支持范围、模糊和等于查询方式。
  • 支持主表连同一对一、一对多从表的级联插入和更新。
  • 支持一对多的聚合字段计算,在主表列表中可动态计算并显示从表的聚合计算结果。
  • 支持主表字段排序、一对一从表字段排序。
  • 完美支持数据权限过滤和操作权限控制。
  • 接口参数均为数据源 ID,不暴露任何后台数据表细节,从机制上彻底消除了 SQL 注入的风险。
  • 运行时效率极高,动态表单关键数据结构均缓存 Caffeine 和 Redis,整体性能无限接近路由表单。

报表打印

  • 支持动态添加多数据源,目前可同时支持 MySQL/PostgreSQL/Oracle/Clickhouse。
  • 支持 Table、SQL 和 API 等数据源,同时支持动态的数据权限过滤。
  • 支持块嵌套布局,支持拖拽图表组件、透视表组件和自定义业务组件,可快速动态配置 Dashboard 页面。
  • 支持基于 Luckysheet 的打印模板设计。
  • 支持导出到 PDF 和 Excel。
  • 支持循环打印、批量打印等。
  • 打印功能可与路由表单、在线表单和流程工单无缝接合。

多租户

  • 多租户工程可同时创建三个应用,分别为租户运营管理后台应用 TenantAdmin,租户运营后台应用,以及面向租户前端 App 的 WebApi 应用。
  • 对于多租户运营管理后台应用 TenantAdmin,不仅内置了自身的权限管理和租户运营管理等功能,同时也支持配置自定义的业务表单和租户统计表单。
  • 支持全局公用字典和租户字典,前者由租户运营管理后台统一管理,租户字典数据可由租户管理员自行维护。为了保证整体运行时效率,两者均支持缓存 Redis。
  • 租户数据支持逻辑隔离、物理隔离和混合隔离等多种方式,租户权限数据由租户运营管理服务统一管理,实时同步到多个租户运行系统数据库中。不仅非常有利于租户数据的迁移。同时也保证了运行时效率。业务逻辑代码与非多租户系统相比,差异也降至最低。
  • 可配置定时任务 Job 服务,并将不同租户数据库中的业务行为数据,分组统计后刷新到租户运营管理数据库中,再由配置的统计表单进行显示。
  • 可与现有的单点登录服务 (uaa) 无缝集成。

基础架构

欢迎加入我们的技术交流 QQ 群,如遇任何使用中的问题我们都将第一时间为您答疑。群3:加入QQ群3 QQ群3

开箱即用

项目信息如您所愿,工程名称、目录结构、基础包名、common模块、代码注释中的 @author 信息等,在创建工程时即已配置,不会留有橙单的任何信息。因此无需二次修改,前后端直接编译运行即可。如编译期和运行时出现问题,那一定是我们的 bug,在得到您反馈后,我们将及时修复。

项目部署

技术选型

  • 前端: Element (Vue) / Luckysheet / ECharts / AntV + Axios + Webpack。
  • 后端: Spring Boot / Spring Cloud / Spring Cloud Alibaba + Spring Security OAuth2 + Mybatis + Jwt。
  • 数据库:MySQL + PostgreSQL + Oracle + 达梦。
  • 工具库: Flowable + Hutool + Guava + Caffeine + Lombok + MapStruct + Mybatis Plus + Knife4j + x-easypdf。
  • 服务组件: Redis + Zookeeper + Nacos + Consul + XXL-Job + Quartz + Seata + Minio + Canal + RocketMQ + Kafka + Sentinel。
  • 系统监控: ELK + PinPoint / SkyWalking + Grafana + Prometheus。

基础功能

  • 前端框架:单页面、多标签、多栏目和子路由,多套高颜值样式主题可供选择。
  • 前端能力:列表编辑、统计图表、多表联动、明细数据下钻、上传下载、导入导出、自定义打印样式模板、富文本等。
  • 页面布局:支持基于 Fragment 和 Block 的灵活布局方式,通过配置即可生成多样化的表单页面,并可预览。
  • 接口规范:微服务和单体服务的接口命名和参数定义规范完全一致,便于日后的平滑升级。
  • 在线表单:支持可视化拖来拽编辑器,表单、后台接口和数据字典均可动态配置,完美集成数据权限过滤和操作权限控制,即配即得。
  • 流程管理:功能完整且前后端全部开源。
  • 后台架构:分布式锁、分布式 Id、分布式缓存、分布式事务、分布式限流和灰度发布等,按需集成。
  • 用户管理:支持基于 OAuth2 的单点登录。
  • 操作权限:前端控制可精确到按钮级的操作和标签级的显示,同时提供了多维度的权限分配路径查询能力。
  • 数据权限:基于 Mybatis 拦截器 + JSqlParser 的实现方式,代码侵入性更低。提供丰富的过滤策略,且可精确到 “菜单”。
  • 租户管理:租户权限管理数据、字典等通用数据,均由租户运营管理服务统一管理,并实时同步到多个租户运营库,具有极高的数据库级别容错性。
  • 多数据源:支持简单和复杂两种多数据源注解。复杂注解可灵活自定义,并应对复杂的业务场景。
  • 数据组装:Java 注解方式实现数据组装,支持统一接口的服务内和跨服务的一对一、一对多、多对多、字典、聚合计算等关系数据组合。
  • 定时任务:我们不仅提供了多套 Job 基础框架的集成,更能生成灵活可配、高度优化、便于二次开发的 Job 业务逻辑代码。
  • 系统监控:基于 Kafka + ELK 的日志收集,基于 PinPoint/SkyWalking 的服务链路跟踪,基于 GPE 的服务性能指标监控。
  • 接口文档:目前已集成 Knife4j,同时支持基于 qdox 逆推 Java 工程代码,实现 0 注解导出 Postman 接口文件和 Markdown 文档。
  • 操作日志:灵活可配置。统一拦截每次请求调用的输入输出,及各种调用数据细节,以便于后期的统计分析和问题定位。微服务工程由 Kafka 消费者服务统一批量处理,并与 ELK + SkyWalking/PinPoint 等日志监控系统完全打通。单体工程则异步的存入数据库表中。

代码质量

此为在线演示工程的代码审查报告,而非当前开源示例工程。前者代码量更大,结构更复杂。

  1. SonarQube 扫描
  • 基于 SonarQube8.2 缺省最严格的代码扫描规则,其中代码复杂度要求为 15。
  • 有气味代码共90处,其中85处为DTO、Model、常量字典、RPC接口等定义出现重复名称所致,均与模拟实际业务有关。
  • 其余气味代码,是在权衡性能、可读性和易修改性等因素后保留下来的,具体见图4。
  1. Alibaba Code Guide 扫描
  • 下载最新版本IDEA插件,同时打开所有审查条件。
  • 全部代码扫描通过。
  1. Statistic 代码统计
  • 生成代码总量约为86000多行,主要包括Java、XML、YAML和SQL初始化脚本等。
  • Java代码覆盖率为37%。

价值理念

都看到这里了,如果看的仔细,至少要花 20 分钟,非常感谢您的坚持和耐心,希望能再花 1 秒钟的时间在下面 star 一下。

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

橙单中台化低代码生成器。可完整支持多应用、多租户、多渠道、工作流 (Flowable & Activiti)、在线表单、自定义数据同步、自定义Job、多表关联、跨服务多表关联、框架技术栈自由组合等。 展开 收起
Java
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/wzyee/orange-flowable.git
git@gitee.com:wzyee/orange-flowable.git
wzyee
orange-flowable
orange-flowable
master

搜索帮助

14c37bed 8189591 565d56ea 8189591