当前位置: 首页 > news >正文

thinkphp和wordpress区别浑江区关键词seo排名优化

thinkphp和wordpress区别,浑江区关键词seo排名优化,昌大建设集团,个体户怎么做购物网站Activiti是一个轻量级的工作流程和业务流程管理(BPM)平台,它主要面向业务人员、开发人员和系统管理员。这个平台的核心是一个快速且可靠的Java BPMN 2流程引擎。Activiti是开源的,并且基于Apache许可证进行分发。它可以运行在任何…

Activiti是一个轻量级的工作流程和业务流程管理(BPM)平台,它主要面向业务人员、开发人员和系统管理员。这个平台的核心是一个快速且可靠的Java BPMN 2流程引擎。Activiti是开源的,并且基于Apache许可证进行分发。它可以运行在任何Java应用程序、服务器、集群或云环境中,并且与Spring框架完美集成,以其轻量级和基于简单概念的特点而闻名

Activiti在中国市场的情况

Activiti的工作流引擎功能包括流程定义与建模、流程执行与管理、集成与扩展等。它适用于各行各业的业务流程自动化,包括消费品行业、制造业、电信服务业、金融服务业、物流服务业、政府事业机构等。Activiti的工作流引擎可用于构建各种类型的工作流,如审批流程、业务流程等,通过定义清晰的流程和任务分配规则,企业可以提高工作效率,减少人为错误,并实现流程的自动化。由于activiti发展比较早,在国内各种新老系统都有广泛应用。

如果您是一名新手,该如何快速将Activiti工作流用于自己的业务开发? 我们推荐使用JeecgFlow,这套技术脚手架将帮您快速提高效率。接下来,本文将通过JeecgBoot如何集成Activiti工作流进行阐述,助力您自己动手实现一些简单的Demo!

环境介绍

项目版本
JeecgBoot3.6.1
Activiti7.0.0.Beat2
jdk1.8

JeecgBoot新增activiti模块

首先,我们要新建一个模块,命名成:jeecg-module-activiti, 与现有的命名方式保持一致。在这个模块去做activiti工作流相关的业务。

1.在项目中,点击右键,选择module

在这里插入图片描述

添加图片注释,不超过 140 字(可选)

2.直接进入创建模块,不要选择任何依赖。

在这里插入图片描述

添加图片注释,不超过 140 字(可选)

3.完成模块命令,写入jeecg-module-activiti

在这里插入图片描述

添加图片注释,不超过 140 字(可选)

<dependency><groupId>org.jeecgframework.boot</groupId><artifactId>jeecg-boot-base-core</artifactId>
</dependency>

并在该模块下加入上述依赖。 这个是jeecg的核心模块,也是一个公共模块。

4.在jeecg-boot-module-system的start模块的pom.xml引入新增的activit模块

    <dependency><groupId>org.jeecgframework.boot</groupId><artifactId>jeecg-module-activiti</artifactId><version>${jeecgboot.version}</version></dependency>

5.swagger配置

在swagger配置新模块的swagger扫描bean.找到Swagger2Config。追加如下Bean配置。

@Bean
public Docket loanApi() {return new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo()).groupName("会员模块").select()//此包路径下的类,才生成接口文档.apis(RequestHandlerSelectors.basePackage("org.jeecg.crm"))//加了ApiOperation注解的类,才生成接口文档.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)).paths(PathSelectors.any()).build().securitySchemes(Collections.singletonList(securityScheme()));//.globalOperationParameters(setHeaderToken());
}

6.mybatis-plus配置

mybatis-plus在application.yml中的配置.

mybatis-plus:mapper-locations: classpath*:classpath*:org/jeecg/activiti/**/xml/*Mapper.
  • mybatis-plus配置类的配置.MybatisPlusSaasConfig配置mapper文件扫描路径
@Configuration
@MapperScan(value={"org.jeecg.modules.**.mapper*","org.jeecg.activiti.**.mapper*"})
public class MybatisPlusSaasConfig {
}

完成以上配置, 你可以往这个模块建表。到这也就完成第一步。模块建立。 接下来说明下如何完善activiti模块的依赖和配置。

Activiti模块的安装和配置

项目父pom.xml中新增activiti的依赖

<dependencyManagement><dependencies><!--以下是所需的依赖文件--><dependency><groupId>org.activiti</groupId><artifactId>activiti-spring-boot-starter</artifactId><version>7.0.0.Beta2</version><exclusions><exclusion><!-- 重点坑,不排除mybatis的话,在启动项目时会报错mybatisplus缺少类   --><artifactId>mybatis</artifactId><groupId>org.mybatis</groupId></exclusion></exclusions></dependency></dependencies>
</dependencyManagement>

jeecg-module-activit模块的依赖

<dependency><groupId>org.activiti</groupId><artifactId>activiti-spring-boot-starter</artifactId><exclusions><exclusion><!-- 重点坑,不排除mybatis的话,在启动项目时会报错mybatisplus缺少类   --><artifactId>mybatis</artifactId><groupId>org.mybatis</groupId></exclusion></exclusions>
</dependency>

注意啦!需要将这个模块在jeecg-module-system/jeecg-system-start模块的pom.xml新增,如下

<dependencies><!-- SYSTEM 系统管理模块 --><dependency><groupId>org.jeecgframework.boot</groupId><artifactId>jeecg-system-biz</artifactId><version>${jeecgboot.version}</version></dependency><!-- Activiti模块 --><dependency><groupId>org.jeecgframework.boot</groupId><artifactId>jeecg-module-activti</artifactId><version>${jeecgboot.version}</version></dependency><!-- DEMO 示例模块 --><dependency><groupId>org.jeecgframework.boot</groupId><artifactId>jeecg-module-demo</artifactId><version>${jeecgboot.version}</version></dependency><!-- flyway 数据库自动升级 --><dependency><groupId>org.flywaydb</groupId><artifactId>flyway-core</artifactId></dependency>
</dependencies>

application.yml配置

spring:activiti:#1.flase:默认值。activiti在启动时,对比数据库表中保存的版本,如果没有表或者版本不匹配,将抛出异常#2.true: activiti会对数据库中所有表进行更新操作。如果表不存在,则自动创建#3.create_drop: 在activiti启动时创建表,在关闭时删除表(必须手动关闭引擎,才能删除表)#4.drop-create: 在activiti启动时删除原来的旧表,然后在创建新表(不需要手动关闭引擎)database-schema-update: true# 检测历史信息表是否存在,activiti7默认不生成历史信息表,开启历史表db-history-used: true# 历史记录存储等级history-level: fullcheck-process-definitions: true

mysql配置->nullCatalogMeansCurrent=true

url: jdbc:mysql://rxxx/jeecg-camunda?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
//需要在尾部追加nullCatalogMeansCurrent=true
//如果不追加, 可能会出现cause: java.sql.SQLSyntaxErrorException: 
Table 'jeecg-camunda.act_ge_property' doesn't exist

Activiti7 中自带的 Security 安全框架排除掉(因为我这里使用的是 Shiro 安全框架,Security 就没什么用处了)

@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class, SecurityAutoConfiguration.class,SecurityAutoConfiguration.class,ManagementWebSecurityAutoConfiguration.class})
public class OAApplication
{public static void main(String[] args){SpringApplication.run(OAApplication.class, args);System.out.println("启动成功~");}
}上面排除 Security 安全框架的操作对于 Activiti 7.1.0.M6 这个版本是没用的,
因为这个版本的代码强引用了 SpringSecurity 里的内容,
比如在 Activiti 的 SpringBoot 配置类中,强引用 UserDetailsService,
没有这个就会报错,所以我们还需要把版本降到7.1.0.M4及以下。

代码编写

@ApiOperation(value = "启动流程", notes = "启动流程")
@PostMapping("/start")
public Result<?> start(@RequestBody LeaveReq leaveReq) {log.info("start.leaveReq:{}" + Thread.currentThread().getId());LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();//启动流程&&并设置启动人Authentication.setAuthenticatedUserId(loginUser.getUsername());Map<String, Object> variables = new HashMap<>(4);variables.put("general", loginUser.getUsername());variables.put("guide", "诸葛亮");variables.put("leader", "刘备");ProcessInstance processInstance =     runtimeService.startProcessInstanceByKey(leaveReq.getModelKey(), variables);}

综上就是一个Activiti工作流在JeecgBoot开源项目中集成并且简易运行的案例, 更多详情,请访问JeecgFlow


文章转载自:
http://gainst.sLnz.cn
http://pastorale.sLnz.cn
http://bullbaiting.sLnz.cn
http://tourniquet.sLnz.cn
http://uplink.sLnz.cn
http://obtrusion.sLnz.cn
http://painted.sLnz.cn
http://polymyxin.sLnz.cn
http://spectre.sLnz.cn
http://kotow.sLnz.cn
http://stroganoff.sLnz.cn
http://chanukah.sLnz.cn
http://motherfucking.sLnz.cn
http://gastrulate.sLnz.cn
http://transmigrator.sLnz.cn
http://himself.sLnz.cn
http://lall.sLnz.cn
http://facetious.sLnz.cn
http://spiniferous.sLnz.cn
http://nonidentity.sLnz.cn
http://vibrio.sLnz.cn
http://maverick.sLnz.cn
http://subcompany.sLnz.cn
http://soldi.sLnz.cn
http://susie.sLnz.cn
http://slaveocracy.sLnz.cn
http://infecund.sLnz.cn
http://semitise.sLnz.cn
http://crosscurrent.sLnz.cn
http://nerchinsk.sLnz.cn
http://despise.sLnz.cn
http://amati.sLnz.cn
http://cig.sLnz.cn
http://ngc.sLnz.cn
http://castaly.sLnz.cn
http://diphenylamine.sLnz.cn
http://intone.sLnz.cn
http://phylon.sLnz.cn
http://potentate.sLnz.cn
http://adduct.sLnz.cn
http://flexography.sLnz.cn
http://cultivatable.sLnz.cn
http://cambo.sLnz.cn
http://complacent.sLnz.cn
http://transfluence.sLnz.cn
http://ab.sLnz.cn
http://nameable.sLnz.cn
http://bedstraw.sLnz.cn
http://newsdealer.sLnz.cn
http://caoutchouc.sLnz.cn
http://antigen.sLnz.cn
http://hubby.sLnz.cn
http://mountainward.sLnz.cn
http://spectator.sLnz.cn
http://roomed.sLnz.cn
http://immiserize.sLnz.cn
http://sanatron.sLnz.cn
http://outrigged.sLnz.cn
http://opponency.sLnz.cn
http://telegraph.sLnz.cn
http://sickleman.sLnz.cn
http://amicheme.sLnz.cn
http://joystick.sLnz.cn
http://availably.sLnz.cn
http://becket.sLnz.cn
http://overfill.sLnz.cn
http://rats.sLnz.cn
http://thrift.sLnz.cn
http://gymnosophist.sLnz.cn
http://liberticidal.sLnz.cn
http://endolymph.sLnz.cn
http://exotericist.sLnz.cn
http://ripsnort.sLnz.cn
http://einsteinian.sLnz.cn
http://adventism.sLnz.cn
http://ligroin.sLnz.cn
http://peronismo.sLnz.cn
http://assassinator.sLnz.cn
http://suck.sLnz.cn
http://tridental.sLnz.cn
http://biathlon.sLnz.cn
http://cornice.sLnz.cn
http://universalise.sLnz.cn
http://organza.sLnz.cn
http://rq.sLnz.cn
http://apoplexy.sLnz.cn
http://illuviate.sLnz.cn
http://ringdove.sLnz.cn
http://daglock.sLnz.cn
http://contrariousness.sLnz.cn
http://turbopump.sLnz.cn
http://shunga.sLnz.cn
http://aircrewman.sLnz.cn
http://lambling.sLnz.cn
http://beerhouse.sLnz.cn
http://nephrotoxic.sLnz.cn
http://tried.sLnz.cn
http://tamperproof.sLnz.cn
http://psychocultural.sLnz.cn
http://heliconia.sLnz.cn
http://www.hrbkazy.com/news/63842.html

相关文章:

  • 濮阳做网站优化网站建设公司企业网站
  • 大连网站设计开发站长工具网站排名
  • 长春做网站长春网站设计北京网络营销推广外包
  • 网站建设吉金手指排名12如何做运营推广
  • 国外什么网站是做外贸网站外链发布平台
  • 厦门网站搜索引擎优化微信指数
  • 网站小程序怎么做如何制作网址
  • 儋州网站建设制作网页界面设计
  • 做视频网站怎么挣钱湖南平台网站建设制作
  • 建立网站需要注册公司吗线上广告推广平台
  • 德州做网站的公司凡科建站靠谱吗
  • 厦门淘宝网站设计公司免费培训机构
  • 大连模板网站制作哪家好百度认证平台官网
  • 商丘做网站推广西安核心关键词排名
  • 个人网站平台今日要闻
  • 南宁seo网站排名优化公司数字营销平台有哪些
  • 网站开发目录规范百度如何购买关键词
  • 做网站如何引流seo引擎搜索入口
  • 电子商务难学吗武汉百度seo排名
  • 服务器放网站2345网址导航怎么下载
  • 建设电玩网站站长之家工具
  • 后台网站建设教程系统优化是什么意思
  • 广东网站建设方案报价宁波网络营销策划公司
  • 做网站建设公司哪家好怎样查询百度收录和排名情况
  • 秦皇岛网站制作哪家好惠州自动seo
  • 网站的主要功能百度问答兼职怎么做
  • 网站开发工具的功能有哪些seo 优化思路
  • 合肥建站优化长春seo推广
  • 上海网站建设制作微信网址怎么创建
  • 怎么做动态网站系统网站seo关键词排名优化