当前位置:网站首页>New BPMN file used by activiti workflow
New BPMN file used by activiti workflow
2022-07-23 11:48:00 【Jiuli ⠂】
Activiti Workflow use new bpmn file
List of articles
One 、bpmn The file is introduced
Business process modeling and annotation (Business Process Model and Notation,BPMN) , The basic symbols that describe the process , Including how these elements are combined into a business flow chart (Business Process Diagram)
idea Draw the process , There are two files bpmn Document and png file , among bpmn File can also be called process definition file , It needs to follow BPMN language norm .png: It's just a simple picture , It doesn't work .
Two 、 Process drawing
2.1 Use activiti-app Drawing process
Process instance : Points approval process
2.2 The process node specifies an agent
Each process node needs to specify an agent , That is, the process executes to a task , A designated user is required to approve
Click the task node , Select an agent
There are three ways to appoint agents :
1、 Fixed agent
2、 Use url Expressions dynamically set delegates
3、 Use listeners to dynamically set up agents
2.3 Except for agents , Node can also set other types of node auditing

Follow up articles to explain
3、 ... and 、 Process saving and Export
preservation :
export :
Four 、 technological process bpmn file
<?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/processdef"> <process id="pointsRequestProcesses" name=" Points approval process " isExecutable="true"> <startEvent id="startEventPoint" name=" Start " /> <userTask id="userTaskPointsRequest" name=" Points application " activiti:assignee="${applicantUser}" activiti:exclusive="true"> <outgoing>Flow_0z08cw6</outgoing> </userTask> <userTask id="userTaskCompanyApproval" name=" Provincial company approval " activiti:candidateUsers="${reviewerUser}" activiti:exclusive="true"> <incoming>Flow_0z08cw6</incoming> </userTask> <exclusiveGateway id="exclusivegateway02" name=" Provincial company approval exclusivegateway02" /> <endEvent id="endEventPoint" /> <sequenceFlow id="flow1" sourceRef="startEventPoint" targetRef="userTaskPointsRequest" /> <sequenceFlow id="flow4" sourceRef="userTaskCompanyApproval" targetRef="exclusivegateway02" /> <sequenceFlow id="flowrightexclusivegateway2" name=" Approved by the provincial company " sourceRef="exclusivegateway02" targetRef="endEventPoint"> <extensionElements> <activiti:executionListener class="com.awifi.capacity.project.manager.activiti.provider.listener.MyTaskListener" event="take" /> </extensionElements> <conditionExpression xsi:type="tFormalExpression"> ${isOk == true} </conditionExpression> </sequenceFlow> <sequenceFlow id="flowleftexclusivegateway2" name=" The provincial company failed to pass the approval " sourceRef="exclusivegateway02" targetRef="userTaskPointsRequest"> <extensionElements> <activiti:executionListener class="com.awifi.capacity.project.manager.activiti.provider.listener.MyTaskListener" event="take" /> </extensionElements> <conditionExpression xsi:type="tFormalExpression"> ${isOk == false} </conditionExpression> </sequenceFlow> <sequenceFlow id="Flow_0z08cw6" sourceRef="userTaskPointsRequest" targetRef="userTaskCompanyApproval" /> </process> <bpmndi:BPMNDiagram id="BPMNDiagram_pointsRequest"> <bpmndi:BPMNPlane id="BPMNPlane_pointsRequest" bpmnElement="pointsRequestProcesses"> <bpmndi:BPMNEdge id="BPMNEdge_flowleftexclusivegateway2" bpmnElement="flowleftexclusivegateway2"> <omgdi:waypoint x="769.402004454343" y="69.40200445434299" /> <omgdi:waypoint x="383.75" y="162.88046485888214" /> <bpmndi:BPMNLabel> <omgdc:Bounds x="533" y="91" width="88" height="14" /> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_flowrightexclusivegateway2" bpmnElement="flowrightexclusivegateway2"> <omgdi:waypoint x="798.9766063630692" y="71.02339363693075" /> <omgdi:waypoint x="1056.795793598862" y="176.69071224016682" /> <bpmndi:BPMNLabel> <omgdc:Bounds x="889" y="99" width="77" height="14" /> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_flow4" bpmnElement="flow4"> <omgdi:waypoint x="785" y="135" /> <omgdi:waypoint x="785" y="85" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_flow1" bpmnElement="flow1"> <omgdi:waypoint x="189.99732231181528" y="177.7165860350523" /> <omgdi:waypoint x="283.75" y="175.9448818897638" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="Flow_0z08cw6_di" bpmnElement="Flow_0z08cw6"> <omgdi:waypoint x="384" y="175" /> <omgdi:waypoint x="735" y="175" /> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="BPMNShape_startEvent1" bpmnElement="startEventPoint"> <omgdc:Bounds x="160" y="163" width="30" height="30" /> <bpmndi:BPMNLabel> <omgdc:Bounds x="164" y="193" width="22" height="14" /> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="BPMNShape_userTask1" bpmnElement="userTaskPointsRequest"> <omgdc:Bounds x="284" y="135" width="100" height="80" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="BPMNShape_userTask3" bpmnElement="userTaskCompanyApproval"> <omgdc:Bounds x="735" y="135" width="100" height="80" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="BPMNShape_exclusivegateway02" bpmnElement="exclusivegateway02" isMarkerVisible="true"> <omgdc:Bounds x="765" y="45" width="40" height="40" /> <bpmndi:BPMNLabel> <omgdc:Bounds x="742" y="85" width="86" height="27" /> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="BPMNShape_sid-5477B73E-9754-4A01-B13D-B6B61CC509E0" bpmnElement="endEventPoint"> <omgdc:Bounds x="1056" y="168" width="28" height="28" /> </bpmndi:BPMNShape> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions>
边栏推荐
- Usage of some, every, find, FindIndex
- Digital collection development / meta universe digital collection development
- 按照日期进行累加sql
- DVWA学习笔记
- [system problems] Net Framework 3.5 installation error
- Quartz2.2 simple scheduling job
- 数仓4.0笔记——用户行为数据采集二
- Scala之二流程控制
- window运行gradle build -- --stacktrace出现找不到文件framework-4.3.0.BUILD-SNAPSHOT-schema.zip异常
- Genesis曾向三箭资本提供23.6亿美元的贷款
猜你喜欢

Digital collection development / digital collection system development solution

window下vmware使用无线网卡nat的方式上网

NFT digital collection development /dapp development

Phxpaxos installation and compilation process

NFT交易平台数字藏品系统|开发定制
![[flick]flick on yarn's flick conf simplest configuration](/img/de/0ec23f3379148dba27fe77dc51e22f.png)
[flick]flick on yarn's flick conf simplest configuration

Typescript advanced type

NFT数字藏品平台开发搭建,源码开发数字藏品

DVWA学习笔记

Using dynamic programming to solve the longest growing subsequence problem
随机推荐
[monitoring deployment practice] display the charts of Prometheus and loki+promtail based on granfana
Implementation of neural network for face recognition
数仓4.0笔记——用户行为数据采集三
Using dynamic programming to solve the longest growing subsequence problem
CTF web common software installation and environment construction
[doris] configure and basically use the contents system (continue to add content when you have time)
Pywinauto+ an application (learn to lesson 9) -- blocked
VMware uses wireless network card NAT to access the Internet under Windows
Use require.context to complete batch import of local pictures
NFT交易平台数字藏品系统|开发定制
activiti7快速入门经验分享
The user logs in continuously (interruption is allowed) to query SQL
Accumulate SQL by date
MySQL modify function permission is not effective
數倉4.0筆記——用戶行為數據采集四
数字藏品系统开发:企业布局元宇宙数字藏品
Yarn容量调度器设置
notepad++背景颜色调整选项中文释义
Genesis provided a loan of US $2.36 billion to Sanya capital
[deployment] cluster deployment and startup of presto-server-0.261.tar.gz








