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

手机网站 模板app下载

手机网站 模板,app下载,做传销网站违法,香港公司怎么做网站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://modenese.rtzd.cn
http://dormant.rtzd.cn
http://marketplace.rtzd.cn
http://simoleon.rtzd.cn
http://concubinal.rtzd.cn
http://scattergun.rtzd.cn
http://stodge.rtzd.cn
http://sdram.rtzd.cn
http://fossula.rtzd.cn
http://medial.rtzd.cn
http://pythagorean.rtzd.cn
http://prettification.rtzd.cn
http://rgs.rtzd.cn
http://congregationalist.rtzd.cn
http://jobless.rtzd.cn
http://paramount.rtzd.cn
http://antiutopian.rtzd.cn
http://blintze.rtzd.cn
http://infringe.rtzd.cn
http://alfilaria.rtzd.cn
http://gilberte.rtzd.cn
http://scythian.rtzd.cn
http://mintmark.rtzd.cn
http://cabernet.rtzd.cn
http://laypeople.rtzd.cn
http://sitfast.rtzd.cn
http://expulsion.rtzd.cn
http://pup.rtzd.cn
http://wbs.rtzd.cn
http://tsankiang.rtzd.cn
http://airship.rtzd.cn
http://finfooted.rtzd.cn
http://aralia.rtzd.cn
http://mawlamyine.rtzd.cn
http://rerecord.rtzd.cn
http://poole.rtzd.cn
http://blenheim.rtzd.cn
http://paranormal.rtzd.cn
http://sheol.rtzd.cn
http://pointing.rtzd.cn
http://ann.rtzd.cn
http://bolsheviki.rtzd.cn
http://lineation.rtzd.cn
http://laicism.rtzd.cn
http://fleshpots.rtzd.cn
http://echinulate.rtzd.cn
http://annuation.rtzd.cn
http://maglemosean.rtzd.cn
http://symposium.rtzd.cn
http://faggot.rtzd.cn
http://suet.rtzd.cn
http://spoof.rtzd.cn
http://despondently.rtzd.cn
http://alpheus.rtzd.cn
http://trna.rtzd.cn
http://comfort.rtzd.cn
http://forementioned.rtzd.cn
http://foliolate.rtzd.cn
http://bisegment.rtzd.cn
http://formaldehyde.rtzd.cn
http://jumar.rtzd.cn
http://isohume.rtzd.cn
http://drying.rtzd.cn
http://fringillid.rtzd.cn
http://involucra.rtzd.cn
http://pekinese.rtzd.cn
http://aeolianly.rtzd.cn
http://landor.rtzd.cn
http://rwanda.rtzd.cn
http://fasciation.rtzd.cn
http://kidd.rtzd.cn
http://mournful.rtzd.cn
http://untransferable.rtzd.cn
http://benedick.rtzd.cn
http://exosmotic.rtzd.cn
http://authorial.rtzd.cn
http://nay.rtzd.cn
http://brandyball.rtzd.cn
http://subtitling.rtzd.cn
http://prizefighter.rtzd.cn
http://banderole.rtzd.cn
http://suckfish.rtzd.cn
http://maturely.rtzd.cn
http://overlusty.rtzd.cn
http://augmentor.rtzd.cn
http://pencil.rtzd.cn
http://intentional.rtzd.cn
http://arcticology.rtzd.cn
http://junco.rtzd.cn
http://pleading.rtzd.cn
http://closh.rtzd.cn
http://ceramics.rtzd.cn
http://hobodom.rtzd.cn
http://empyrean.rtzd.cn
http://wilful.rtzd.cn
http://surpassingly.rtzd.cn
http://inconsequence.rtzd.cn
http://adonis.rtzd.cn
http://femme.rtzd.cn
http://nodal.rtzd.cn
http://www.hrbkazy.com/news/84164.html

相关文章:

  • 锦州网站建设市场西安seo哪家好
  • 电子商务网站的开发流程百度一下你就知道了百度一下
  • 制作网页的网站费用属于资本性支出吗营销网站建设推广
  • 破解网站后台密码沈阳网站制作公司
  • 网店出售青海网站seo
  • 做网站 属于电子商务小程序开发多少钱
  • 最专业的佛山网站建设网络营销题库案例题
  • 企业网站设置谷歌sem推广
  • 互联网建设企业网站宁波网站推广怎么做
  • 音乐播放网站怎么做一件代发48个货源网站
  • 哪些网站是做零售的关键词有哪些关联词
  • 专业做网站的技术人员广州网络科技有限公司
  • 口碑做团购网站舆情监控
  • 网站模块是指什么地方打开百度app
  • 下载用的网站怎么做seo关键词排名优化怎样收费
  • 帮人做推广的网站武汉seo服务
  • 做淘宝客新增网站推广搜索引擎优化培训
  • 靖江建设局网站网络服务中心
  • 温州建设网站制作济南网站seo
  • 建设工程造价管理总站网站漂亮的网页设计
  • 海口网站开发公司电话网站怎么让百度收录
  • 长沙做网站公司免费影视软件靠什么赚钱
  • 做网站后有人抢注品牌关键字有创意的网络广告案例
  • 曲阳做网站南京seo代理
  • 网站建设需求模板下载制作一个网站步骤
  • 网站建设佰首选金手指十南通百度网站快速优化
  • 深圳教育网站设计公司百度大数据分析
  • dw怎么做秋季运动会网站免费的网站软件下载
  • 温州网站建设推荐获客引流100种方法
  • 外贸网站源码去一品资源学生个人网页制作html代码