-
springboot 集成 activiti 流程引擎
1. pom
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.2</version> <relativePath /> <!-- lookup parent from repository --> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> <shiro.version>1.4.0</shiro.version> <activiti.version>6.0.0</activiti.version> <batik.version>1.7</batik.version> <maven-jar-plugin.version>3.0.0</maven-jar-plugin.version> </properties> <!-- activiti --> <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-spring-boot-starter-basic</artifactId> <version>${activiti.version}</version> <exclusions> <exclusion> <groupId>de.odysseus.juel</groupId> <artifactId>juel-spi</artifactId> </exclusion> <exclusion> <groupId>de.odysseus.juel</groupId> <artifactId>juel-api</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-json-converter</artifactId> <version>${activiti.version}</version> </dependency> <!-- batik start --> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-anim --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-anim</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-awt-util --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-awt-util</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-bridge --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-bridge</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-codec --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-codec</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-css --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-css</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-dom --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-dom</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-ext --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-ext</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-gvt --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-gvt</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-js --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-js</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-parser --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-parser</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-script --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-script</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-svg-dom --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-svg-dom</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-svggen --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-svggen</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-transcoder --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-transcoder</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-util --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-util</artifactId> <version>${batik.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-xml --> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>batik-xml</artifactId> <version>${batik.version}</version> </dependency>
2. 配置类
package org.fh.config; import org.activiti.spring.SpringProcessEngineConfiguration; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.stereotype.Controller; import org.springframework.transaction.PlatformTransactionManager; import javax.sql.DataSource; /** * 说明:Activiti配置 * 作者:FH Admin * from:www.fhadmin.cn */ @Controller @Configuration public class ActivitiConfig { @Autowired PlatformTransactionManager transactionManager; @Autowired ApplicationContext applicationContext; @Bean public SpringProcessEngineConfiguration getProcessEngineConfiguration() { DataSource dataSource = applicationContext.getBean(DataSource.class); SpringProcessEngineConfiguration config = new SpringProcessEngineConfiguration(); config.setDataSource(dataSource); config.setDbIdentityUsed(false); config.setTransactionManager(transactionManager); /**设置字体**/ config.setActivityFontName("宋体"); config.setLabelFontName("宋体"); config.setAnnotationFontName("宋体"); config.setDatabaseType("oracle"); return config; } }
--------------------------------www.fhadmin.cn----------------------------------自定义表单
28. 定义模版:拖拽左侧表单元素到右侧区域,编辑表单元素,保存表单模版
29. 表单模版:编辑维护表单模版,复制表单模版,修改模版类型,预览表单模版
30. 我的表单:选择表单模版,编辑表单规则,是否上传图片、附件、开启富文本、挂靠流程开关等
31. 表单数据:从我的表单进去可增删改查表单数据,修改表单规则
32. 挂靠记录:记录表单数据和流程实例ID关联记录,可删除
出处:https://www.cnblogs.com/teacher11/p/15133167.html
最新更新
python爬虫及其可视化
使用python爬取豆瓣电影短评评论内容
nodejs爬虫
Python正则表达式完全指南
爬取豆瓣Top250图书数据
shp 地图文件批量添加字段
爬虫小试牛刀(爬取学校通知公告)
【python基础】函数-初识函数
【python基础】函数-返回值
HTTP请求:requests模块基础使用必知必会
SQL SERVER中递归
2个场景实例讲解GaussDB(DWS)基表统计信息估
常用的 SQL Server 关键字及其含义
动手分析SQL Server中的事务中使用的锁
openGauss内核分析:SQL by pass & 经典执行
一招教你如何高效批量导入与更新数据
天天写SQL,这些神奇的特性你知道吗?
openGauss内核分析:执行计划生成
[IM002]Navicat ODBC驱动器管理器 未发现数据
初入Sql Server 之 存储过程的简单使用
uniapp/H5 获取手机桌面壁纸 (静态壁纸)
[前端] DNS解析与优化
为什么在js中需要添加addEventListener()?
JS模块化系统
js通过Object.defineProperty() 定义和控制对象
这是目前我见过最好的跨域解决方案!
减少回流与重绘
减少回流与重绘
如何使用KrpanoToolJS在浏览器切图
performance.now() 与 Date.now() 对比