Activiti
Activiti的基本概念与使用
<?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/test">
<process id="leave" name="请假单" isExecutable="true">
<startEvent id="startevent1" name="Start"/>
<userTask id="usertask1" name="创建请假单" activiti:assignee="zhangsan"/>
<sequenceFlow id="flow1" sourceRef="startevent1" targetRef="usertask1"/>
<userTask id="usertask2" name="部门经理审核" activiti:assignee="lisi"/>
<sequenceFlow id="flow2" sourceRef="usertask1" targetRef="usertask2"/>
<userTask id="usertask3" name="人事复核" activiti:assignee="wangwu"/>
<sequenceFlow id="flow3" sourceRef="usertask2" targetRef="usertask3"/>
<endEvent id="endevent1" name="End"/>
<sequenceFlow id="flow4" sourceRef="usertask3" targetRef="endevent1"/>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_myProcess">
<bpmndi:BPMNPlane bpmnElement="myProcess" id="BPMNPlane_myProcess">
<bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
<omgdc:Bounds height="35.0" width="35.0" x="130.0" y="160.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="usertask1" id="BPMNShape_usertask1">
<omgdc:Bounds height="55.0" width="105.0" x="210.0" y="150.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="usertask2" id="BPMNShape_usertask2">
<omgdc:Bounds height="55.0" width="105.0" x="360.0" y="150.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="usertask3" id="BPMNShape_usertask3">
<omgdc:Bounds height="55.0" width="105.0" x="510.0" y="150.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
<omgdc:Bounds height="35.0" width="35.0" x="660.0" y="160.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
<omgdi:waypoint x="165.0" y="177.0"/>
<omgdi:waypoint x="210.0" y="177.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
<omgdi:waypoint x="315.0" y="177.0"/>
<omgdi:waypoint x="360.0" y="177.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
<omgdi:waypoint x="465.0" y="177.0"/>
<omgdi:waypoint x="510.0" y="177.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
<omgdi:waypoint x="615.0" y="177.0"/>
<omgdi:waypoint x="660.0" y="177.0"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>部署Activiti
Activiti支持的数据库
使用MySQL生成Activiti库
创建流程引擎
businessKey
挂起、激活流程
挂起/激活指定的流程实例
挂起/激活指定的流程
任务处理-为task指定Assignee
固定分配
表达式分配
任务监听器分配

任务查询
任务办理
流程变量
流程变量的类型
Type Name
Description
设置流程变量
获取流程变量
局部流程变量
设置局部流程变量
获取局部流程变量
组任务
设置候选人
网关
排他网关 ExclusiveGateway

并行网关 ParallelGateway

包含网关 InclusiveGateway

事件网关 EventGateway

Service 接口
Activiti的表结构
ACT_RE_PROCDEF 流程定义表
ACT_RE_DEPLOYMENT 流程部署记录表
ACT_RE_MODEL 流程模型表
ACT_GE_BYTEARRAY 二进制资源表
表分类
表名
解释
部署流程
最后更新于