workflow工作流(三):画流程图工具对比

article/2025/8/14 19:11:31

一、总结

我所用过能画工作流的工具有2个:1.eclipse插件,2.flowable官方网页版,结论是eclipse插件好用,后者要上传下载,还容易丢数据

注意事项:eclipse插件画出来的bpmn文件的schama是activiti,不要改为flowable的,报错没关系,运行会正常,改了可能导致修改bpmn文件时丢数据

二、eclipse插件

    对eclipse的版本有限制,Eclipse Mars and Neon.不排除新版本也能用,最好Mars以上

eclipse下载网址:https://www.eclipse.org/downloads/packages/release/2018-12/r/eclipse-ide-eclipse-committers

右下边有历史版本下载,我用的是Mars

安装流程设计器(eclipse插件)

1.有网安装

有网络的情况下,安装流程设计器步骤如下:

  1. 打开 Help -> Install New Software. 在如下面板中:

2.在如下Install界面板中,点击Add按钮

            配置新装插件的地址和名称

3.然后填入下列字段

  • Name: Flowable BPMN 2.0 designer

  • Location: http://www.flowable.org/designer/update/

designer.add.update.site

4.回到Install界面,在面板正中列表中把所有展示出来的项目都勾上:

5.点击复选框

在Detail部分记得选中 "Contact all updates sites.." , 因为它会检查所有当前安装所需要的插件并可以被Eclipse下载.

6.安装完以后,点击新建工程new->Other…打开面板,如果看到下图内容:

designer.create.flowable.project

 

            说明安装成功了。

2:没网安装

没有网络的情况下,安装流程设计器步骤如下:

  1. 准备插件
  2. 把压缩包解压,放入eclipse根目录的dropins文件夹下
  3. 重启eclipse,点击新建工程new->Other…打开面板,如果看到下图内容:

说明安装成功了

 

3.对流程设计器的使用说明

打开菜单Windows->Preferences->Activiti->Save下流程流程图片的生成方式:

虽然流程引擎在单独部署bpmn文件时会自动生成图片,但在实际开发过程中,自动生成的图片会导致和BPMN中的坐标有出入,在实际项目中展示流程当前位置图会有问题。最后单独部署时生成的图片会有问题所在完成以上配置后,会由我们自己来管理流程图片。在发布流程时把流程规则文件和流程图片一起上传就行了。

三、flowable官方网页版

Flowable UI Applications installation

As mentioned before, all four UI apps can be deployed together on the same Tomcat server, and to get started this is probably the easiest approach. You can choose to only install the Modeler app, for example, but make sure the Flowable IDM app is always running/deployed as well. For this installation guide we’ll describe the installation of all four apps to a Tomcat server.

  1. Download a recent stable version of Apache Tomcat.

  2. Download the latest stable Flowable 6 version.

  3. Copy the flowable-admin.war, flowable-idm.war, flowable-modeler.war and flowable-task.war files from the Flowable distribution wars folder to the Tomcat webapps folder.

  4. Startup the Tomcat server by running the bin/startup.sh (Mac OS and Linux) or bin/startup.bat (Windows) script.

  5. Open a web browser and go to http://localhost:8080/flowable-modeler.

All Flowable UI apps should now be running with an H2 in-memory database and the following login screen should be shown in your web browser:

flowable idm login screen

By default, the Flowable IDM application will create an admin user that has privileges to all the Flowable UI apps. You can login with admin/test and the browser should redirect to the Flowable Modeler application:

flowable modeler startup screen

Since the UI apps are Spring Boot executable apps it is possible to run them as standalone applications without the need of an application server. Starting single application looks like:

java -jar flowable-idm.war

Usually, you will want to change the default H2 in-memory database configuration to a MySQL or Postgres (or other persistent database) configuration. You can do this per app by changing the application.properties file in the WEB-INF/classes/ directory of each app. However, it is easier to use the Spring Boot Externalized Configuration. An example configuration can be found on Github To change the default configuration to MySQL the following changes are needed to the properties file:

spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/flowable?characterEncoding=UTF-8
spring.datasource.username=flowable
spring.datasource.password=flowable

This configuration will expect a flowable database to be present in the MySQL server and the UI apps will automatically generate the necessary database tables. For Postgres the following changes are necessary:

spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/flowable
spring.datasource.username=flowable
spring.datasource.password=flowable

In addition to changing the configuration, make sure the database driver is available on the classpath. Again, you could do this for every web application separately by adding the driver JAR file to the WEB-INF/lib folder, but you can also copy the JAR file once to the Tomcat lib folder. For MySQL and Postgres the database drivers can be downloaded from:

  • MySQL: https://dev.mysql.com/downloads/connector/j

  • Postgres: https://jdbc.postgresql.org/

When running the apps as standalone applications the database driver can be added by using the loader.path property.

java -Dloader.path=/location/to/your/driverfolder -jar flowable-idm.war

See the PropertiesLauncher Features in the Spring Boot reference documentation for more information.

四、Flowable6.4

在Flowable官网或github下载 flowable-6.4.0.zip,里面有4个压缩包,用途如下所示,官网上抄来的

Flowable applications

Flowable provides several ui web applications to demonstrate and leverage the functionality provided by the Flowable project:

  • Flowable IDM: an Identity Management application that provides single sign-on authentication functionality for all the Flowable UI applications, and, for users with the IDM administrative privilege, it also provides functionality to manage users, groups and privileges. 单点登录,公用账号:admin/test

  • Flowable Modeler: an application that allows users with modeler privileges to model processes, forms, decision tables and application definitions.设计流程、表单、表格

  • Flowable Task: a runtime task application that provides functionality to start process instances, edit task forms, complete tasks and query on tasks and process instances. 演示带task的流程

  • Flowable Admin: an administrative application that allows users with admin privilege to query the BPMN, DMN, form and content engines and provides several options to change process instances, tasks, jobs and so on. The admin application connects to the engines through the REST API that is deployed together with the Flowable Task app and the Flowable REST app. 管理员,能查到关于流程的很多东西

The Flowable IDM is required for all other apps to enable authentication. The WAR files for each app can be deployed to the same servlet container (such as Apache Tomcat), but can also be deployed on different servlet containers. Because the same cookie is used for authentication with each app, the apps need to run on the same domain.

Flowable also provides the flowable-rest.war which contains the Flowable REST API. More about this can be read in the REST API chapter.

The apps are Spring Boot 2.0 based, which means that that the WAR files are actually executable and can be run as a normal standalone applications. See The Executable Jar Format in the Spring Boot reference documentation.


http://chatgpt.dhexx.cn/article/GBeJLOTh.shtml

相关文章

Bladex Workflow工作流引擎开发进阶-版本v1.2.2

Bladex Workflow工作流引擎开发进阶 1 Bladex Workflow简介2 Flowable简介3 workflow部署和配置-参考文档《BladeX插件 - Blade-flow使用帮助文档 》4 配置任务监听4.1 问题:监听类注入不了service 5 配置事件监听6 复杂表单-配置外部表单(不建议配置超大…

workflow工作流(二):34张表

1.常用的表 2.总共34张表 Activiti的后台是有数据库的支持,所有的表都以ACT_开头。 第二部分是表示表的用途的两个字母标识。 用途也和服务的API对应。 ACT_RE_*: RE表示repository。 这个前缀的表包含了流程定义和流程静态资源 (图片,规则&…

SAP Workflow 工作流开发步骤总结

一、配置 SWU3 设置管理员 二、新建业务对象 查看我们需要增强的业务对象,比如我们项目上用的是BUS2000114,一般我们工作流的触发 是用单据状态的改变来触发,这就需要我们增强业务对象 使用SWO1 新建一个业务对象 继承上面的标准对象 注意…

小小研究一下工作流WorkFlow

修房子 在小牧老家农村,小时候总是看到村里有人在修房子。每次看到有人修房子的时候,他就会爬到房子面前的沙粒堆上去,翻找随着沙子一起被挖出来的贝壳。虽然也不知道拿来干嘛,不过总觉得收集贝壳很好玩。 小牧也喜欢看他们修房子。修房子的时候,专业的修房师傅会指导工…

微软 workflow 工作流总结

1.状态机工作流 (1)状态机工作流从state1 流转到 state2 到stateN (2) state中有执行状态和退出状态 (3) 在进入下一个步骤(state1 到 state2)前,首先会判断进入下一个状态的条件,下面我把它叫做判断模块 (4)在判断模块中,有三个生命周期:Trigger,Condition,Action (5)判断模…

WorkFlow工作流

工作流 一、什么是工作流 历史发展: 工作流的理论起源于70年代中期办公的自动化领域。90年代。工作流技术的研究与开发进一步发展。1993年8月,成立第一个工作流技术标准话的工业组织WFMC(工作流管理联盟)。现在,工作…

工作流(Workflow)基本介绍

工作流简介 工作流(Workflow),就是“业务过程的部分或整体在计算机应用环境下的自动化”,它主要解决的是“使在多个参与者之间按照某种预定义的规则传递文档、信息或任务的过程自动进行,从而实现某个预期的业务目标&a…

Eclipse下配置主题颜色

对于长期做开发的哥们来说,过于明亮的背景色会导致视觉疲劳,从而致使效率各种下降、困意各种来袭。为了有效阻止这种可怕的事情发生,我们需要改变背景色! OK,这篇博客主要讲解如何设置eclipse软件的背景色:…

修改eclipse的主题颜色

很多小伙伴的eclipse都是以白色为主,看到别人的暗色的eclipse感觉很炫酷,这里就教大家一下如何改主题颜色 1.点击顶部导航栏help,找到Eclipse Marketplace 2.在弹出的Eclipse Marketplace窗口中,在search中搜索color theme&…

eclipse设置 “暗黑色” 主题

经典模式的 eclipse 都是白底黑字,比较刺眼,长时间写代码,让人感觉眼睛疲劳,所以尝试换一个暗黑色主题背景,可以有效减缓眼睛疲劳,而且暗黑色主题给人感觉就很酷炫,有木有! 1、打开…

Eclipse背景主题设置

这方面的内容是很简单,而且网上也相当多的教程。但我觉得,自己写一下,既可以加持自己写博客的心态,也给需要的人分享一下。 确认一下自己的Eclispse版本, 如果是最新版本的Eclipse Luna,可以略过第一步,如果是旧的版本需要下载一个插件,并将其放在eclipse目录下的plugi…

Eclipse在线安装color-theme主题

添加入口: Eclipse --> Help --> Install New Software --> addName: color-theme Location: http://eclipse-color-theme.github.com/update全选 NEXT 接受协议 选择 Install anyway Restart Now 重启 Window --> Preference --> General --> Appe…

为Eclipse安装主题插件(Color Theme)

由于正常eclipse界面配色是白底黑字,长时间工作容易眼睛疲劳,才想着去装这个Eclipse Color Theme 插件,安装过程中遇到了一些问题。 正常安装的话直接 Help -> marketplace -> search 框下输入 color theme 就可以搜索到目标插件&am…

如何把Eclipse修改为黑色主题

转载自:http://bbs.itheima.com/forum.php?modviewthread&tid119345&extrapage%3d1%26filter%3dtypeid%26typeid%3d390?lt3448 原帖名:如何把Eclipse修改为黑色主题?求配色方案! 因为主力问题已解决,经过修…

eclipse黑色主题黑色背景

现在本人用eclipse的版本信息:Eclipse for PHP Developers ----Version: Mars.1 Release (4.5.1),可以在菜单栏--help---about eclipse里查看 因为写代码到很晚,所以想换个黑色主题以以及黑色背景。 所以写一写这个设置。 自己先参照了别人…

(转)设置漂亮的Eclipse主题(Theme)风格

原地址:http://blog.csdn.net/zhouchangshi/article/details/37901519 童鞋们, eclipse主题太丑?想设置护眼的主题? 看看这些主题: 请移驾: Eclipse Color Themes http://www.eclipsecolorthemes.org/ 怎么…

idea安装eclipse风格主题

前言 最近开始学习使用idea,用惯了eclipse风格,IntelliJ IDEA 想换个eclipse主题,百度了一圈发现大部分教程去的下载地址都打不开,原来idea里面就可以搜索安装。。。。 一、打开idea 路径:file->setting-Plugins 二、在中间…

Eclipse主题设置

主题下载地址:http://www.eclipsecolorthemes.org/?q 这个是我自己的配置文件 , 看着舒服的童鞋也可以用,下载地址:http://download.csdn.net/download/rely_on_yourself/10137995 先展示下效果图: 设置步骤: 先将Eclipse的整个背景主题定好 将下载好的配置文件导入Ecl…

Eclipse主题插件DevStyle修改Eclipse主题

使用eclipse自带的插件下载功能,安装DevStyle插件,可轻松实现更换多种不同风格的主题。 以下是其中几款效果图 亮灰(经典款) 亮绿(护眼款) 亮粉(少女款) 深灰(熬夜…

Eclipse颜色主题(Color Theme)与缩进线(Indent Guide)插件安装教程

摘要:这篇博文主要介绍Eclipse的颜色主题插件(Color Theme)的安装教程,以及如何使用缩进线插件为编辑器中代码添加类似Visual Studio中的缩进线,以对Eclipse编辑器界面进行美化,要点如下: Colo…