问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

springboot 集成 activiti 流程引擎

发布网友 发布时间:2023-03-18 12:22

我来回答

1个回答

热心网友 时间:2023-11-09 13:45

 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配置

* 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;

}

}
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
母爱作文(围绕一句话来写)900字 月经期能喝冰糖沙梨水? 石家庄火车站骗钱 五等分的新娘手游汉化安卓游戏官方下载 昆明看守所那个看守所好在 成建军行政拘留 青岛贵捷充换电设备成套服务有限公司怎么样? 合肥贵捷商贸有限责任公司怎么样? 南京贵捷物资有限公司怎么样? 上海贵捷电气有限公司产品用途 陕西离婚抚养费一年是多少? 陕西最低生活保障标准 陕西省赡养费标准计算方法因事故造成人员死亡 在陕西省老年人赡养费是怎么样规定的? 舌尖之旅:壮香红茶属于红茶,工艺是介于红茶和乌龙茶之间 舌尖上的茶香 什么是舌尖抹茶 空调冰箱变频真空打能加4小型氟 WPS表格中如何设置这种随着温度数值变化颜色跟着变化? 使用wps对数据排序为什么会改变数据 注销后还能恢复吗 标准化——业务管理的基本 wps表格一个单元格的数据随着某一列最下面的单元格的数据变化而变化 每天早上4~5点钟胃就难受 感觉胃就像被抽空了食一样 也不是疼 就必须吃点东西才能消除这种难受 每天早上5至6点钟左右我就感觉胃上不舒服这是什么原因呢? 注销之后微信账号多久能再次使用? 微信实名解绑注销,还能用吗? 注销后还能恢复吗? 微信账户注销了是不是还能用? 注销了还可以再登录吗? DNF90级版本,天帝独立攻击力3241,智力3896,怎么感觉打不出理想伤害还 终极使命里许松最后死了吗 我们的当打之年谷峤第几集逆袭 终极使命高寒和谁在一起了 垃圾电视剧终极使命是怎么通过审查的 photoshocs6笔刷工具在哪里 洗衣瓶口圈有什么有 爱华Md如何格式化 上情什么四字成语 叠成几卷书太平。猜一种动物 励志文章:创业要学会滚雪球 炸好的藕夹如何存放? 只要有房子就能嫁给你的星座女 房子=安全感,12星座女中的嫁房女有哪些? 12星座女中的“嫁房女”? 最容易成为房嫂的星座女 适合嫁给富人家的星座女双鱼座 买车贷款提前还款需要违约金 行军九日思长安故园中的菊花为什么应该傍战场开放? 为什么电脑突然蓝屏又开不了电脑