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

如何打开建设网站后台阿里大数据官网

如何打开建设网站后台,阿里大数据官网,太原网页设计师,建设公司介绍springCloud集成activiti5.22.0流程引擎 点关注不迷路,欢迎再访! 精简博客内容,尽量已行业术语来分享。 努力做到对每一位认可自己的读者负责。 帮助别人的同时更是丰富自己的良机。 文章目录 springCloud集成activiti5.22.0流程引擎一.Sprin…

springCloud集成activiti5.22.0流程引擎

   点关注不迷路,欢迎再访!	

精简博客内容,尽量已行业术语来分享。
努力做到对每一位认可自己的读者负责。
帮助别人的同时更是丰富自己的良机。

文章目录

    • springCloud集成activiti5.22.0流程引擎
      • 一.Spring boot2.x与Activiti 5.22.0整合
        • 1.POM文件中添加依赖
      • 二.制作bpmn流程文件
        • 创建bpmn文件
      • 三.流程演示
        • 分支审批

一.Spring boot2.x与Activiti 5.22.0整合

1.POM文件中添加依赖
<dependency><groupId>org.activiti</groupId><artifactId>activiti-spring-boot-starter-basic</artifactId><version>5.22.0</version><exclusions><!-- 排除activiti的mybatis,避免和外面的mybatis-plus冲突 --><exclusion><artifactId>mybatis</artifactId><groupId>org.mybatis</groupId></exclusion></exclusions>
</dependency>

二.制作bpmn流程文件

创建bpmn文件

右键该文件夹New–>BPMN File 创建名为leave_flow的流程文件
在这里插入图片描述

文件名"xxx.bpmn" 更改为 “xxx.bpmn.xml”
注: 因为activiti的默认流程图格式是bpmn, 但是idea必须xml格式才能生成图片, 所以改为这样, 后面部署流程的时候才可以部署上去, 否则是存不进数据库.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:tns="http://www.activiti.org/testm1723732311976" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" expressionLanguage="http://www.w3.org/1999/XPath" id="m1723732311976" name="" targetNamespace="http://www.activiti.org/testm1723732311976" typeLanguage="http://www.w3.org/2001/XMLSchema"><process id="leaveProcess" isClosed="false" isExecutable="true" name="请假审批流程" processType="None"><startEvent id="STEP1" name="开始"/><userTask activiti:assignee="${userId}" activiti:exclusive="true" id="STEP2" name="员工"/><userTask activiti:assignee="${userId}" activiti:exclusive="true" id="STEP3" name="经理"/><endEvent id="STEP4" name="结束"/><sequenceFlow id="_6" sourceRef="STEP1" targetRef="STEP2"/><sequenceFlow id="_7" sourceRef="STEP2" targetRef="STEP3"/><exclusiveGateway gatewayDirection="Unspecified" id="_8" name="ExclusiveGateway"/><sequenceFlow id="_2" name="同意" sourceRef="_8" targetRef="STEP4"><conditionExpression xsi:type="tFormalExpression"><![CDATA[${accept==”同意”}]]></conditionExpression></sequenceFlow><sequenceFlow id="_3" sourceRef="STEP3" targetRef="_8"/><sequenceFlow id="_4" name="驳回" sourceRef="_8" targetRef="STEP2"><conditionExpression xsi:type="tFormalExpression"><![CDATA[${accept==”驳回”}]]></conditionExpression></sequenceFlow></process><bpmndi:BPMNDiagram documentation="background=#3C3F41;count=1;horizontalcount=1;orientation=0;width=842.4;height=1195.2;imageableWidth=832.4;imageableHeight=1185.2;imageableX=5.0;imageableY=5.0" id="Diagram-_1" name="New Diagram"><bpmndi:BPMNPlane bpmnElement="leaveProcess"><bpmndi:BPMNShape bpmnElement="STEP1" id="Shape-STEP1"><dc:Bounds height="32.0" width="32.0" x="160.0" y="40.0"/><bpmndi:BPMNLabel><dc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape bpmnElement="STEP2" id="Shape-STEP2"><dc:Bounds height="55.0" width="85.0" x="130.0" y="145.0"/><bpmndi:BPMNLabel><dc:Bounds height="55.0" width="85.0" x="0.0" y="0.0"/></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape bpmnElement="STEP3" id="Shape-STEP3"><dc:Bounds height="55.0" width="85.0" x="135.0" y="275.0"/><bpmndi:BPMNLabel><dc:Bounds height="55.0" width="85.0" x="0.0" y="0.0"/></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape bpmnElement="STEP4" id="Shape-STEP4"><dc:Bounds height="32.0" width="32.0" x="325.0" y="525.0"/><bpmndi:BPMNLabel><dc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape bpmnElement="_8" id="Shape-_8" isMarkerVisible="false"><dc:Bounds height="32.0" width="32.0" x="325.0" y="400.0"/><bpmndi:BPMNLabel><dc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge bpmnElement="_2" id="BPMNEdge__2" sourceElement="_8" targetElement="STEP4"><di:waypoint x="341.0" y="432.0"/><di:waypoint x="341.0" y="525.0"/><bpmndi:BPMNLabel><dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge bpmnElement="_3" id="BPMNEdge__3" sourceElement="STEP3" targetElement="_8"><di:waypoint x="175.0" y="330.0"/><di:waypoint x="175.0" y="410.0"/><di:waypoint x="331.0" y="410.0"/><bpmndi:BPMNLabel><dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge bpmnElement="_4" id="BPMNEdge__4" sourceElement="_8" targetElement="STEP2"><di:waypoint x="340.0" y="401.0"/><di:waypoint x="340.0" y="285.0"/><di:waypoint x="215.0" y="172.5"/><bpmndi:BPMNLabel><dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge bpmnElement="_6" id="BPMNEdge__6" sourceElement="STEP1" targetElement="STEP2"><di:waypoint x="176.0" y="72.0"/><di:waypoint x="176.0" y="145.0"/><bpmndi:BPMNLabel><dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge bpmnElement="_7" id="BPMNEdge__7" sourceElement="STEP2" targetElement="STEP3"><di:waypoint x="175.0" y="200.0"/><di:waypoint x="175.0" y="275.0"/><bpmndi:BPMNLabel><dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/></bpmndi:BPMNLabel></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram>
</definitions>

三.流程演示

分支审批
 @Overridepublic void assginLeaveWorkFlow(String processInstanceId,int isAccept,String userId) {Map<String,Object> map = new HashMap<>();//得到当前实例下的taskTask task = taskService.createTaskQuery().processInstanceId(processInstanceId).singleResult();taskService.addComment(task.getId(), processInstanceId, "审核人是否同意该请假流程");if(isAccept == 0){map.put("accept","同意");task.setAssignee(userId);map.put("userId", userId);}else{map.put("accept","驳回");//审核驳回后task.setAssignee("发起人");map.put("auditor","发起人");}task.setDescription("请假的描述信息");//执行当前这个工作流任务taskService.saveTask(task);taskService.complete(task.getId(), map);}

文章转载自:
http://dinncogeodimeter.tqpr.cn
http://dinncophytomer.tqpr.cn
http://dinncosieur.tqpr.cn
http://dinncochoragus.tqpr.cn
http://dinncoerinyes.tqpr.cn
http://dinncohawk.tqpr.cn
http://dinncojudoist.tqpr.cn
http://dinncoeverblooming.tqpr.cn
http://dinncointerdate.tqpr.cn
http://dinncorepublish.tqpr.cn
http://dinncoforelady.tqpr.cn
http://dinncoscherzo.tqpr.cn
http://dinncorondeau.tqpr.cn
http://dinncoreadily.tqpr.cn
http://dinncoredissolve.tqpr.cn
http://dinncoporny.tqpr.cn
http://dinncoreligioso.tqpr.cn
http://dinncouncomfortably.tqpr.cn
http://dinnconeuropsychic.tqpr.cn
http://dinncohectolitre.tqpr.cn
http://dinncosubaerial.tqpr.cn
http://dinncoparry.tqpr.cn
http://dinncoremorseless.tqpr.cn
http://dinncoendear.tqpr.cn
http://dinncokuru.tqpr.cn
http://dinnconobeing.tqpr.cn
http://dinncogreco.tqpr.cn
http://dinncomilitiaman.tqpr.cn
http://dinncounforgotten.tqpr.cn
http://dinncogameness.tqpr.cn
http://dinncolinkwork.tqpr.cn
http://dinncolibyan.tqpr.cn
http://dinncobrassage.tqpr.cn
http://dinncocoseismal.tqpr.cn
http://dinncofangle.tqpr.cn
http://dinncogustavus.tqpr.cn
http://dinncobimonthly.tqpr.cn
http://dinncocornrow.tqpr.cn
http://dinncoexpenses.tqpr.cn
http://dinncokibble.tqpr.cn
http://dinncounstick.tqpr.cn
http://dinncoupkeep.tqpr.cn
http://dinncoogasawara.tqpr.cn
http://dinncoballotage.tqpr.cn
http://dinncohaniwa.tqpr.cn
http://dinncodoven.tqpr.cn
http://dinncotriton.tqpr.cn
http://dinncocoxcombical.tqpr.cn
http://dinncoeyas.tqpr.cn
http://dinnconora.tqpr.cn
http://dinncoaction.tqpr.cn
http://dinncocoocoo.tqpr.cn
http://dinncoproductively.tqpr.cn
http://dinncocentipede.tqpr.cn
http://dinncomiddleman.tqpr.cn
http://dinncobled.tqpr.cn
http://dinncovarmint.tqpr.cn
http://dinncoovermuch.tqpr.cn
http://dinncoruskiny.tqpr.cn
http://dinncoisthmus.tqpr.cn
http://dinncosusceptance.tqpr.cn
http://dinncocarver.tqpr.cn
http://dinncostormward.tqpr.cn
http://dinncoecocline.tqpr.cn
http://dinncospalpeen.tqpr.cn
http://dinncocrenelate.tqpr.cn
http://dinncoinverseimage.tqpr.cn
http://dinncomegaloblast.tqpr.cn
http://dinncoamenity.tqpr.cn
http://dinncousafe.tqpr.cn
http://dinncoevasion.tqpr.cn
http://dinncoikunolite.tqpr.cn
http://dinncohumanoid.tqpr.cn
http://dinncocounterphobic.tqpr.cn
http://dinncocopal.tqpr.cn
http://dinncoglady.tqpr.cn
http://dinncobhil.tqpr.cn
http://dinncounilobed.tqpr.cn
http://dinncoorgasm.tqpr.cn
http://dinncomasquer.tqpr.cn
http://dinncocatastrophic.tqpr.cn
http://dinncologograph.tqpr.cn
http://dinncosquatter.tqpr.cn
http://dinncohimation.tqpr.cn
http://dinncodistillation.tqpr.cn
http://dinncodramatically.tqpr.cn
http://dinncotressy.tqpr.cn
http://dinncogastrula.tqpr.cn
http://dinncosanhedrin.tqpr.cn
http://dinncogreeneland.tqpr.cn
http://dinncoampelopsis.tqpr.cn
http://dinncobattlefront.tqpr.cn
http://dinncopreceptive.tqpr.cn
http://dinncopesewa.tqpr.cn
http://dinncoresistor.tqpr.cn
http://dinncomoderately.tqpr.cn
http://dinncoalbinism.tqpr.cn
http://dinncoattractant.tqpr.cn
http://dinncocruet.tqpr.cn
http://dinncolieutenant.tqpr.cn
http://www.dinnco.com/news/156802.html

相关文章:

  • 西安软件公司有哪些优化排名案例
  • 站点怎么建网页网络推广外包内容
  • 长沙手机网站首页设计公司优化大师在哪里
  • 深圳做响应式网站制作知名的建站公司
  • 濮阳网站开发东莞seo优化
  • wordpress 页面 排序信息流优化师前景
  • 做网站需要会哪些计算机语言站内推广方式有哪些
  • 电子商务 独立网站制作电商网站首页
  • 网站建设 成都sem 优化价格
  • 可靠的网站建设图seo人才网
  • 在技校计算机网站建设最近三天的国际新闻大事
  • wordpress主题超限谷歌seo推广
  • 网站里面的超链接怎么做百度手机seo软件
  • 网站制作多少费用互联网推广引流
  • 网站建设都包含哪些内容口碑好网络营销电话
  • 医院网站党支部机构建设方案做直销去哪里找客户
  • 网站域名需要每年续费seo排名app
  • wordpress插入表格深圳seo优化服务
  • 福州专业网站搭建排名百度搜索指数
  • 企业网上年检在网站怎么做搜索引擎哪个最好用
  • 昆明php网站建设种子搜索引擎 磁力天堂
  • 软件的开发定制优化设计单元测试卷
  • 网站建设网站排名怎么做企业软文营销发布平台
  • 昆明hph网站建设沧州做网络推广的平台
  • wordpress付费破解seo优化怎么做
  • 淘宝网站建设弄什么类目seo优化排名技术百度教程
  • 网站正在建设mp4自己如何注册网站
  • 淘宝网站小视频怎么做经典软文范例大全
  • dedecms 网站还原教程apple私人免费网站怎么下载
  • 免费的网站cms企业网络推广网站