flowable
官方手册:Flowable BPMN 用户手册 (v 6.3.0)
https://tkjohn.github.io/flowable-userguide/#_introduction
设计流程图
方式一:进入 Draw.io 官网:https://app.diagrams.net/
方式二:可视化设计工具Camunda Modeler:https://designer.bpmport.com/designer/
方式三:在线网站:https://designer.bpmport.com/designer/
方式四:通过Tomcat
① 下载Flowable-ui:Flowable-ui 6.7.2
② 下载Tomcat:tomcat 9 下载
③ 把flowable-ui里面wars下的两个war包拷贝到tomcat的webapps文件夹中,然后启动tomcat
④ 运行成功在浏览器输入 http://localhost:8080/flowable-ui/,进入flowable-ui界面
Flowable BPMN 中文用户手册 (v 6.3.0):
https://tkjohn.github.io/flowable-userguide/#flowableDesigner
参考项目gitee:
ZhangChi921/flowable —— 基RuoYi-vue + flowable 6.7.2 的工作流管理 ~
项目地址:https://gitee.com/zhangchi921/flowable
项目演示:http://www.tony2y.top/index
文档信息:https://www.yuque.com/u1024153/icipor
删除流程相关数据:
SET FOREIGN_KEY_CHECKS = 0;
-- 检查表是否存在,不存在则跳过
TRUNCATE TABLE act_ge_bytearray;
TRUNCATE TABLE act_re_deployment;
TRUNCATE TABLE act_re_model;
TRUNCATE TABLE act_re_procdef;
TRUNCATE TABLE act_ru_event_subscr;
TRUNCATE TABLE act_ru_execution;
TRUNCATE TABLE act_ru_job;
TRUNCATE TABLE act_ru_task;
TRUNCATE TABLE act_ru_variable;
TRUNCATE TABLE act_hi_actinst;
TRUNCATE TABLE act_hi_detail;
TRUNCATE TABLE act_hi_identitylink;
TRUNCATE TABLE act_hi_procinst;
TRUNCATE TABLE act_hi_taskinst;
TRUNCATE TABLE act_hi_varinst;
-- 作业管理表
TRUNCATE TABLE act_ru_deadletter_job;
TRUNCATE TABLE act_ru_suspended_job;
TRUNCATE TABLE act_ru_timer_job;
-- TRUNCATE TABLE act_ru_batch;
-- TRUNCATE TABLE act_ru_batch_part;
-- 身份与权限表(谨慎使用,可能影响用户认证)
TRUNCATE TABLE act_id_group;
TRUNCATE TABLE act_id_info;
TRUNCATE TABLE act_id_membership;
TRUNCATE TABLE act_id_user;
-- 表单与决策表(若启用)
-- TRUNCATE TABLE act_re_decision_def;
-- TRUNCATE TABLE act_re_decision_req_def;
-- TRUNCATE TABLE act_ru_decision_execution;
-- TRUNCATE TABLE act_fo_form_definition;
-- CMMN表(若启用)
-- TRUNCATE TABLE act_cmmn_case_def;
-- TRUNCATE TABLE act_cmmn_case_inst;
-- TRUNCATE TABLE act_cmmn_plan_item_inst;
-- TRUNCATE TABLE act_cmmn_sentry_part_inst;
-- 其他表
TRUNCATE TABLE act_evt_log;
-- TRUNCATE TABLE act_ge_tenant;
SET FOREIGN_KEY_CHECKS = 1;
驳回:测试流程7.bpmn
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" 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:flowable="http://flowable.org/bpmn" id="Definitions_0rkhtpn" targetNamespace="http://bpmn.io/schema/bpmn">
<bpmn:process id="Process_0cwifvo" name="测试流程" isExecutable="true">
<bpmn:startEvent id="Event_0m8eojs" name="开始" flowable:initiator="initiator">
<bpmn:outgoing>Flow_034znm6</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Activity_1ap95qb" name="提交人" flowable:assignee="ziji" flowable:skipExpression="${initiator == ''}">
<bpmn:extensionElements>
<flowable:assigneeType>static</flowable:assigneeType>
<flowable:authPoint>[]</flowable:authPoint>
<flowable:staticAssigneeVariables>[]</flowable:staticAssigneeVariables>
</bpmn:extensionElements>
<bpmn:incoming>Flow_034znm6</bpmn:incoming>
<bpmn:incoming>Flow_18cla8a</bpmn:incoming>
<bpmn:outgoing>Flow_12i9zmq</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_034znm6" sourceRef="Event_0m8eojs" targetRef="Activity_1ap95qb" />
<bpmn:userTask id="Activity_0sqskun" name="人事审批" flowable:assignee="zhangsan" flowable:candidateUsers="">
<bpmn:extensionElements>
<flowable:assigneeType>static</flowable:assigneeType>
<flowable:staticAssigneeVariables>[]</flowable:staticAssigneeVariables>
</bpmn:extensionElements>
<bpmn:incoming>Flow_12i9zmq</bpmn:incoming>
<bpmn:incoming>Flow_1dfj1t6</bpmn:incoming>
<bpmn:outgoing>Flow_1db63bf</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_12i9zmq" sourceRef="Activity_1ap95qb" targetRef="Activity_0sqskun" />
<bpmn:userTask id="Activity_1o4hgw8" name="经理审批" flowable:assignee="lisi" flowable:candidateUsers="">
<bpmn:extensionElements>
<flowable:assigneeType>static</flowable:assigneeType>
<flowable:staticAssigneeVariables>[]</flowable:staticAssigneeVariables>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1j8cu0m</bpmn:incoming>
<bpmn:outgoing>Flow_0ch5zx4</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_13qthj7" name="网关1">
<bpmn:incoming>Flow_1db63bf</bpmn:incoming>
<bpmn:outgoing>Flow_18cla8a</bpmn:outgoing>
<bpmn:outgoing>Flow_1j8cu0m</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_1db63bf" sourceRef="Activity_0sqskun" targetRef="Gateway_13qthj7" />
<bpmn:sequenceFlow id="Flow_18cla8a" name="驳回" sourceRef="Gateway_13qthj7" targetRef="Activity_1ap95qb">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${approvalResult == 'revoke'}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1j8cu0m" name="同意" sourceRef="Gateway_13qthj7" targetRef="Activity_1o4hgw8">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${approvalResult == 'approve'}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0ch5zx4" sourceRef="Activity_1o4hgw8" targetRef="Gateway_1bnpteq" />
<bpmn:exclusiveGateway id="Gateway_1bnpteq" name="网关2">
<bpmn:incoming>Flow_0ch5zx4</bpmn:incoming>
<bpmn:outgoing>Flow_1betjkt</bpmn:outgoing>
<bpmn:outgoing>Flow_1dfj1t6</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:endEvent id="Event_0geqsba" name="结束">
<bpmn:incoming>Flow_1betjkt</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1betjkt" name="同意" sourceRef="Gateway_1bnpteq" targetRef="Event_0geqsba">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${approvalResult == 'approve'}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1dfj1t6" name="驳回" sourceRef="Gateway_1bnpteq" targetRef="Activity_0sqskun">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${approvalResult == 'revoke'}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_0cwifvo">
<bpmndi:BPMNShape id="Event_0m8eojs_di" bpmnElement="Event_0m8eojs">
<dc:Bounds x="-288" y="-398" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="-281" y="-355" width="22" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ap95qb_di" bpmnElement="Activity_1ap95qb">
<dc:Bounds x="-170" y="-420" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0sqskun_di" bpmnElement="Activity_0sqskun">
<dc:Bounds x="30" y="-420" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1o4hgw8_di" bpmnElement="Activity_1o4hgw8">
<dc:Bounds x="340" y="-420" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_13qthj7_di" bpmnElement="Gateway_13qthj7" isMarkerVisible="true">
<dc:Bounds x="215" y="-405" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="226" y="-435" width="29" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1bnpteq_di" bpmnElement="Gateway_1bnpteq" isMarkerVisible="true">
<dc:Bounds x="515" y="-405" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="526" y="-435" width="29" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0geqsba_di" bpmnElement="Event_0geqsba">
<dc:Bounds x="642" y="-398" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="649" y="-355" width="22" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_034znm6_di" bpmnElement="Flow_034znm6">
<di:waypoint x="-252" y="-380" />
<di:waypoint x="-170" y="-380" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12i9zmq_di" bpmnElement="Flow_12i9zmq">
<di:waypoint x="-70" y="-380" />
<di:waypoint x="30" y="-380" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1db63bf_di" bpmnElement="Flow_1db63bf">
<di:waypoint x="130" y="-380" />
<di:waypoint x="215" y="-380" />
<bpmndi:BPMNLabel>
<dc:Bounds x="162" y="-398" width="22" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_18cla8a_di" bpmnElement="Flow_18cla8a">
<di:waypoint x="240" y="-355" />
<di:waypoint x="240" y="-300" />
<di:waypoint x="-120" y="-300" />
<di:waypoint x="-120" y="-340" />
<bpmndi:BPMNLabel>
<dc:Bounds x="49" y="-318" width="22" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1j8cu0m_di" bpmnElement="Flow_1j8cu0m">
<di:waypoint x="265" y="-380" />
<di:waypoint x="340" y="-380" />
<bpmndi:BPMNLabel>
<dc:Bounds x="292" y="-398" width="22" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ch5zx4_di" bpmnElement="Flow_0ch5zx4">
<di:waypoint x="440" y="-380" />
<di:waypoint x="515" y="-380" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1betjkt_di" bpmnElement="Flow_1betjkt">
<di:waypoint x="565" y="-380" />
<di:waypoint x="642" y="-380" />
<bpmndi:BPMNLabel>
<dc:Bounds x="593" y="-398" width="22" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1dfj1t6_di" bpmnElement="Flow_1dfj1t6">
<di:waypoint x="540" y="-355" />
<di:waypoint x="540" y="-280" />
<di:waypoint x="80" y="-280" />
<di:waypoint x="80" y="-340" />
<bpmndi:BPMNLabel>
<dc:Bounds x="299" y="-298" width="22" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>

浙公网安备 33010602011771号