Activiti6.0流程引擎学习——(11)使用IDEA编码实现的请假流程
本篇博客要使用IDEA来实现之前绘制好的请假流程图。流程图如下:
具体创建这个流程图请看这篇博客:https://blog.csdn.net/JJBOOM425/article/details/85015145
1、创建maven工程
我们在IDEA中new一个maven工程,这里我们不使用脚手架来创建maven工程。直接点击next进行下一步。
然后我们填写工程信息:
2、添加相关的配置
我们打开创建项目后的pom.xml文件,可以看到里面已经有了一些信息:
我们在这个XML文件中添加这个maven工程所需的配置:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com.jjf.activiti</groupId><artifactId>activiti6-leaveprocess</artifactId><version>1.0-SNAPSHOT</version><dependencies><!-- Activiti引擎依赖 --><dependency><groupId>org.activiti</groupId><artifactId>activiti-engine</artifactId><version>6.0.0</version></dependency><!-- 单元测试,注意scope,只有在测试时候使用 --><dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>4.11</version><scope>test</scope></dependency><!-- 较受欢迎的日志组建,类似于log4j --><dependency><groupId>ch.qos.logback</groupId><artifactId>logback-classic</artifactId><version>1.1.11</version></dependency><!-- 常用类 --><dependency><groupId>com.google.guava</groupId><artifactId>guava</artifactId><version>23.0</version></dependency><!-- h2内存级数据库 --><dependency><groupId>com.h2database</groupId><artifactId>h2</artifactId><version>1.3.176</version></dependency></dependencies></project>
3、创建Activiti流程引擎的启动类
首先在src/main/java 目录下创建一个 com.jjf.activiti.leaveprove文件夹,在里面我们创建 DemoMain的启动类:
启动类中我们按照四步来创建一个流程的启动类:
一、创建流程引擎
ProcessEngineConfiguration cfg = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration(); //创建默认的基于内存数据库的流程引擎配置对象
ProcessEngine processEngine = cfg.buildProcessEngine(); //构造流程引擎
String engineName = processEngine.getName(); //获取流程引擎的name
String version = ProcessEngine.VERSION; //获取流程引擎的版本信息LOGGER.info("流程引擎名称 [{}], 版本 [{}]", engineName, version);
二、部署流程定义文件
RepositoryService repositoryService = processEngine.getRepositoryService(); //创建一个对流程编译库操作的Service
DeploymentBuilder deploymentBuilder = repositoryService.createDeployment(); //获取一个builder
deploymentBuilder.addClasspathResource("LeaveProcess.bpmn20.xml"); //这里写上流程编译路径
Deployment deployment = deploymentBuilder.deploy(); //部署
String deploymentId = deployment.getId(); //获取deployment的ID
ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().deploymentId(deploymentId).singleResult(); //根据deploymentId来获取流程定义对象
LOGGER.info("流程定义文件 [{}] , 流程ID [{}]", processDefinition.getName(),
三、启动运行流程
RuntimeService runtimeService = processEngine.getRuntimeService(); //启动流程要有一个运行时对象
ProcessInstance processInstance = runtimeService.startProcessInstanceById(processDefinition.getId()); //这里我们根据processDefinition的ID来启动
LOGGER.info("启动流程 [{}]", processInstance.getProcessDefinitionKey());
四、处理流程任务
Scanner scanner = new Scanner(System.in);while (processInstance != null && !processInstance.isEnded()) { //判断流程不为空,且流程没有结束TaskService taskService = processEngine.getTaskService();List<Task> list = taskService.createTaskQuery().list(); //列出当前需要处理的任务LOGGER.info("待处理任务数量 [{}]", list.size());for (Task task : list) {LOGGER.info("待处理任务 [{}]", task.getName());FormService formService = processEngine.getFormService(); //通过formService来获取form表单输入TaskFormData taskFormData = formService.getTaskFormData (task.getId());List<FormProperty> formProperties = taskFormData.getFormProperties(); //获取taskFormData的表单内容Map<String,Object> variables = Maps.newHashMap(); //这个Map键值对来存对应表单用户输入的内容for (FormProperty property : formProperties){ //property为表单中的内容String line = null; //这里获取输入的信息if(StringFormType.class.isInstance(property.getType())){ //如果是String类型的话LOGGER.info("请输入 [{}] ?" , property.getName()); //输入form表单的某一项内容line = scanner.nextLine();variables.put(property.getId(),line);}else if(DateFormType.class.isInstance(property.getType())){ //如果是日期类型的话LOGGER.info("请输入 [{}] ? 格式为(yyyy-MM-dd)" , property.getName()); //输入form表单的某一项内容line = scanner.nextLine();SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); //设置输入的日期格式Date date = dateFormat.parse(line);variables.put(property.getId(),date);}else{LOGGER.info("类型不支持 [{}]",property.getType());}LOGGER.info("您输入的内容是 [{}] " , line);}taskService.complete(task.getId(),variables);processInstance = processEngine.getRuntimeService().createProcessInstanceQuery().processInstanceId(processInstance.getId()).singleResult();}}scanner.close();
4、导入logback文件
将logback.xml导入到resources目录下,为了筛选掉一些对我们来说并没有用到日志信息,我们要在日志中打印输出信息,避免别的信息造成干扰。
其中内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<configuration><!--定义日志文件的存储地址 勿在 LogBack 的配置中使用相对路径--><property name="LOG_HOME" value="/home/tomcatlog/logs/agent" /><property name="plain" value="%msg%n" /><!-- 控制台输出 --><appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"><encoder><pattern>${plain}</pattern></encoder></appender><!-- 按照每天生成日志文件 --><appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"><file>${LOG_HOME}/agent.log</file><rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"><!--日志文件输出的文件名 --><fileNamePattern>${LOG_HOME}/agent.%d{yyyy-MM-dd}.log</fileNamePattern><!--日志文件保留天数 --><maxHistory>30</maxHistory></rollingPolicy><encoder><!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符 --><pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{80} - %msg%n</pattern></encoder></appender><logger name="jdbc.sqlonly" level="OFF" /><logger name="jdbc.resultsettable" level="OFF" /><logger name="jdbc.sqltiming" level="erroe" /><logger name="jdbc.audit" level="error" /><logger name="jdbc.connection" level="error" /><logger name="jdbc.resultset" level="error" /><logger name="root"><level value="ERROR"/></logger><logger name="com.jjf"><level value="DEBUG"/></logger><!-- 日志输出级别 --><root level="info"><!-- ERROR、WARN、INFO、DEBUG --><appender-ref ref="STDOUT" /><appender-ref ref="FILE" /></root>
</configuration>
5、复制bpmn流程图文件
这里将我们上一篇博客绘制好的请假流程图复制到resources目录中。
将这个bpmn文件重新拷贝一份,命名为 LeaveProcess.bpmn20.xml。
最后的文件格式如下:
其中 LeaveProcess.bpmn20.xml 文件内容如下:
<?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="LeaveProcess" name="请假流程" isExecutable="true"><startEvent id="startevent" name="开始"></startEvent><userTask id="submitform" name="填写请假申请"><extensionElements><activiti:formProperty id="message" name="申请信息" type="string" required="true"></activiti:formProperty><activiti:formProperty id="name" name="申请人姓名" type="string" required="true"></activiti:formProperty><activiti:formProperty id="submitTime" name="提交时间" type="date" datePattern="yyyy-MM-dd" required="true"></activiti:formProperty><activiti:formProperty id="submitType" name="确认申请" type="string" required="true"></activiti:formProperty></extensionElements></userTask><sequenceFlow id="flow1" sourceRef="startevent" targetRef="submitform"></sequenceFlow><exclusiveGateway id="decideSubmit" name="提交或取消"></exclusiveGateway><sequenceFlow id="flow2" sourceRef="submitform" targetRef="decideSubmit"></sequenceFlow><userTask id="ZG_approve" name="部门主管审批"><extensionElements><activiti:formProperty id="ZGapprove" name="主管审批结果" type="string" required="true"></activiti:formProperty><activiti:formProperty id="ZGmessage" name="主管备注" type="string" required="true"></activiti:formProperty></extensionElements></userTask><sequenceFlow id="flow3" sourceRef="decideSubmit" targetRef="ZG_approve"><conditionExpression xsi:type="tFormalExpression"><![CDATA[${submitType=="y" || submitType=="Y"}]]></conditionExpression></sequenceFlow><exclusiveGateway id="decideZGapprove" name="主管审批校验"></exclusiveGateway><sequenceFlow id="flow4" sourceRef="ZG_approve" targetRef="decideZGapprove"></sequenceFlow><userTask id="ZJL_approve" name="总经理审批"><extensionElements><activiti:formProperty id="ZJLapprove" name="总经理审批结果" type="string" required="true"></activiti:formProperty><activiti:formProperty id="ZJLmessage" name="总经理备注" type="string" required="true"></activiti:formProperty></extensionElements></userTask><sequenceFlow id="flow5" sourceRef="decideZGapprove" targetRef="ZJL_approve"><conditionExpression xsi:type="tFormalExpression"><![CDATA[${ZGapprove=="y" || ZGapprove=="Y"}]]></conditionExpression></sequenceFlow><exclusiveGateway id="decideZJLapprove" name="总经理审批校验"></exclusiveGateway><sequenceFlow id="flow6" sourceRef="ZJL_approve" targetRef="decideZJLapprove"></sequenceFlow><endEvent id="endevent" name="结束"></endEvent><sequenceFlow id="flow7" sourceRef="decideZJLapprove" targetRef="endevent"><conditionExpression xsi:type="tFormalExpression"><![CDATA[${ZJLapprove=="y" || ZJLapprove=="Y"}]]></conditionExpression></sequenceFlow><endEvent id="endeventCancel" name="取消"></endEvent><sequenceFlow id="flow8" sourceRef="decideSubmit" targetRef="endeventCancel"><conditionExpression xsi:type="tFormalExpression"><![CDATA[${submitType=="n" || submitType=="N"}]]></conditionExpression></sequenceFlow><sequenceFlow id="flow9" sourceRef="decideZGapprove" targetRef="submitform"><conditionExpression xsi:type="tFormalExpression"><![CDATA[${ZGapprove=="n" || ZGapprove=="N"}]]></conditionExpression></sequenceFlow><sequenceFlow id="flow10" sourceRef="decideZJLapprove" targetRef="submitform"><conditionExpression xsi:type="tFormalExpression"><![CDATA[${ZJLapprove=="n" || ZJLapprove=="N"}]]></conditionExpression></sequenceFlow></process><bpmndi:BPMNDiagram id="BPMNDiagram_LeaveProcess"><bpmndi:BPMNPlane bpmnElement="LeaveProcess" id="BPMNPlane_LeaveProcess"><bpmndi:BPMNShape bpmnElement="startevent" id="BPMNShape_startevent"><omgdc:Bounds height="35.0" width="35.0" x="65.0" y="279.0"></omgdc:Bounds></bpmndi:BPMNShape><bpmndi:BPMNShape bpmnElement="submitform" id="BPMNShape_submitform"><omgdc:Bounds height="55.0" width="105.0" x="145.0" y="269.0"></omgdc:Bounds></bpmndi:BPMNShape><bpmndi:BPMNShape bpmnElement="decideSubmit" id="BPMNShape_decideSubmit"><omgdc:Bounds height="40.0" width="40.0" x="295.0" y="277.0"></omgdc:Bounds></bpmndi:BPMNShape><bpmndi:BPMNShape bpmnElement="ZG_approve" id="BPMNShape_ZG_approve"><omgdc:Bounds height="55.0" width="105.0" x="380.0" y="270.0"></omgdc:Bounds></bpmndi:BPMNShape><bpmndi:BPMNShape bpmnElement="decideZGapprove" id="BPMNShape_decideZGapprove"><omgdc:Bounds height="40.0" width="40.0" x="530.0" y="278.0"></omgdc:Bounds></bpmndi:BPMNShape><bpmndi:BPMNShape bpmnElement="ZJL_approve" id="BPMNShape_ZJL_approve"><omgdc:Bounds height="55.0" width="105.0" x="615.0" y="271.0"></omgdc:Bounds></bpmndi:BPMNShape><bpmndi:BPMNShape bpmnElement="decideZJLapprove" id="BPMNShape_decideZJLapprove"><omgdc:Bounds height="40.0" width="40.0" x="765.0" y="279.0"></omgdc:Bounds></bpmndi:BPMNShape><bpmndi:BPMNShape bpmnElement="endevent" id="BPMNShape_endevent"><omgdc:Bounds height="35.0" width="35.0" x="850.0" y="282.0"></omgdc:Bounds></bpmndi:BPMNShape><bpmndi:BPMNShape bpmnElement="endeventCancel" id="BPMNShape_endeventCancel"><omgdc:Bounds height="35.0" width="35.0" x="395.0" y="329.0"></omgdc:Bounds></bpmndi:BPMNShape><bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1"><omgdi:waypoint x="100.0" y="296.0"></omgdi:waypoint><omgdi:waypoint x="145.0" y="296.0"></omgdi:waypoint></bpmndi:BPMNEdge><bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2"><omgdi:waypoint x="250.0" y="296.0"></omgdi:waypoint><omgdi:waypoint x="295.0" y="297.0"></omgdi:waypoint></bpmndi:BPMNEdge><bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3"><omgdi:waypoint x="335.0" y="297.0"></omgdi:waypoint><omgdi:waypoint x="380.0" y="297.0"></omgdi:waypoint></bpmndi:BPMNEdge><bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4"><omgdi:waypoint x="485.0" y="297.0"></omgdi:waypoint><omgdi:waypoint x="530.0" y="298.0"></omgdi:waypoint></bpmndi:BPMNEdge><bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5"><omgdi:waypoint x="570.0" y="298.0"></omgdi:waypoint><omgdi:waypoint x="615.0" y="298.0"></omgdi:waypoint></bpmndi:BPMNEdge><bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6"><omgdi:waypoint x="720.0" y="298.0"></omgdi:waypoint><omgdi:waypoint x="765.0" y="299.0"></omgdi:waypoint></bpmndi:BPMNEdge><bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7"><omgdi:waypoint x="805.0" y="299.0"></omgdi:waypoint><omgdi:waypoint x="850.0" y="299.0"></omgdi:waypoint></bpmndi:BPMNEdge><bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8"><omgdi:waypoint x="315.0" y="317.0"></omgdi:waypoint><omgdi:waypoint x="315.0" y="346.0"></omgdi:waypoint><omgdi:waypoint x="395.0" y="346.0"></omgdi:waypoint></bpmndi:BPMNEdge><bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9"><omgdi:waypoint x="550.0" y="318.0"></omgdi:waypoint><omgdi:waypoint x="549.0" y="382.0"></omgdi:waypoint><omgdi:waypoint x="397.0" y="382.0"></omgdi:waypoint><omgdi:waypoint x="197.0" y="382.0"></omgdi:waypoint><omgdi:waypoint x="197.0" y="324.0"></omgdi:waypoint></bpmndi:BPMNEdge><bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10"><omgdi:waypoint x="785.0" y="279.0"></omgdi:waypoint><omgdi:waypoint x="784.0" y="222.0"></omgdi:waypoint><omgdi:waypoint x="505.0" y="222.0"></omgdi:waypoint><omgdi:waypoint x="197.0" y="222.0"></omgdi:waypoint><omgdi:waypoint x="197.0" y="269.0"></omgdi:waypoint></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram>
</definitions>
6、对代码进行重构
这里我将可以写成函数的代码选取,然后右键 Refactor->Extract->Method... 。
这里写重构函数的函数名:
最后得到我的DemoMain.class如下:
package com.jjf.activiti.leaveprovess;import com.google.common.collect.Maps;
import org.activiti.engine.*;
import org.activiti.engine.form.FormProperty;
import org.activiti.engine.form.TaskFormData;
import org.activiti.engine.impl.form.DateFormType;
import org.activiti.engine.impl.form.StringFormType;
import org.activiti.engine.repository.Deployment;
import org.activiti.engine.repository.DeploymentBuilder;
import org.activiti.engine.repository.ProcessDefinition;
import org.activiti.engine.runtime.ProcessInstance;
import org.activiti.engine.task.Task;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Scanner;public class DemoMain{private static final Logger LOGGER = LoggerFactory.getLogger(DemoMain.class);public static void main(String[] args) throws ParseException {LOGGER.info("开始请假流程 . . .");//创建流程引擎ProcessEngine processEngine = getProcessEngine();//部署流程定义文件ProcessDefinition processDefinition = getProcessDefinition(processEngine);//启动运行流程ProcessInstance processInstance = getProcessInstance(processEngine, processDefinition);//处理流程任务processTask(processEngine, processInstance);LOGGER.info("结束请假流程 . . ");}/*** 处理流程任务* @param processEngine* @param processInstance* @throws ParseException*/private static void processTask(ProcessEngine processEngine, ProcessInstance processInstance) throws ParseException {Scanner scanner = new Scanner(System.in);while (processInstance != null && !processInstance.isEnded()) { //判断流程不为空,且流程没有结束TaskService taskService = processEngine.getTaskService();List<Task> list = taskService.createTaskQuery().list(); //列出当前需要处理的任务LOGGER.info("待处理任务数量 [{}]", list.size());for (Task task : list) {LOGGER.info("待处理任务 [{}]", task.getName());Map<String, Object> variables = getMap(processEngine, scanner, task); //获取用户的输入信息taskService.complete(task.getId(),variables);processInstance = processEngine.getRuntimeService().createProcessInstanceQuery().processInstanceId(processInstance.getId()).singleResult();}}scanner.close();}/*** 获取用户的输入信息* @param processEngine* @param scanner* @param task* @return* @throws ParseException*/private static Map<String, Object> getMap(ProcessEngine processEngine, Scanner scanner, Task task) throws ParseException {FormService formService = processEngine.getFormService(); //通过formService来获取form表单输入TaskFormData taskFormData = formService.getTaskFormData (task.getId());List<FormProperty> formProperties = taskFormData.getFormProperties(); //获取taskFormData的表单内容Map<String,Object> variables = Maps.newHashMap(); //这个Map键值对来存对应表单用户输入的内容for (FormProperty property : formProperties){ //property为表单中的内容String line = null; //这里获取输入的信息if(StringFormType.class.isInstance(property.getType())){ //如果是String类型的话LOGGER.info("请输入 [{}] ?" , property.getName()); //输入form表单的某一项内容line = scanner.nextLine();variables.put(property.getId(),line);}else if(DateFormType.class.isInstance(property.getType())){ //如果是日期类型的话LOGGER.info("请输入 [{}] ? 格式为(yyyy-MM-dd)" , property.getName()); //输入form表单的某一项内容line = scanner.nextLine();SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); //设置输入的日期格式Date date = dateFormat.parse(line);variables.put(property.getId(),date);}else{LOGGER.info("类型不支持 [{}]",property.getType());}LOGGER.info("您输入的内容是 [{}] " , line);}return variables;}/*** 启动运行流程** @param processEngine* @param processDefinition*/private static ProcessInstance getProcessInstance(ProcessEngine processEngine, ProcessDefinition processDefinition) {RuntimeService runtimeService = processEngine.getRuntimeService(); //启动流程要有一个运行时对象ProcessInstance processInstance = runtimeService.startProcessInstanceById(processDefinition.getId()); //这里我们根据processDefinition的ID来启动LOGGER.info("启动流程 [{}]", processInstance.getProcessDefinitionKey());return processInstance;}/*** 部署流程定义文件** @param processEngine* @return*/private static ProcessDefinition getProcessDefinition(ProcessEngine processEngine) {RepositoryService repositoryService = processEngine.getRepositoryService(); //创建一个对流程编译库操作的ServiceDeploymentBuilder deploymentBuilder = repositoryService.createDeployment(); //获取一个builderdeploymentBuilder.addClasspathResource("LeaveProcess.bpmn20.xml"); //这里写上流程编译路径Deployment deployment = deploymentBuilder.deploy(); //部署String deploymentId = deployment.getId(); //获取deployment的IDProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().deploymentId(deploymentId).singleResult(); //根据deploymentId来获取流程定义对象LOGGER.info("流程定义文件 [{}] , 流程ID [{}]", processDefinition.getName(), processDefinition.getId());return processDefinition;}/*** 创建流程引擎** @return*/private static ProcessEngine getProcessEngine() {ProcessEngineConfiguration cfg = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration(); //创建默认的基于内存数据库的流程引擎配置对象ProcessEngine processEngine = cfg.buildProcessEngine(); //构造流程引擎String engineName = processEngine.getName(); //获取流程引擎的nameString version = ProcessEngine.VERSION; //获取流程引擎的版本信息LOGGER.info("流程引擎名称 [{}], 版本 [{}]", engineName, version);return processEngine;}
}
7、执行请假流程
这里我们的输入是有一定的格式的,比如提交时间一定要按照格式输入,并且确认申请与审批结果都只能输入y/Y 或 n/N。因为这些我们在流程图中定义好的,如果有什么问题可以先看流程图绘制的博客。
以上就是我们对请假流程的编码实现。
Activiti6.0流程引擎学习——(11)使用IDEA编码实现的请假流程相关推荐
- Activiti6.0流程引擎学习——(22)activiti的任务管理服务(TaskService)
这里介绍activiti中的任务管理服务,也就是其中的TaskService. TaskService功能: 1.对用户任务(UserTask)管理和流程的控制: 2.设置用户任务(UserTask) ...
- SSM Activiti6.0 工作流引擎 java项目框架 spring5 审批流程
工作流模块----------------------------------------------------------------------------------------------- ...
- activity(流程引擎)从零入门到实战学习
activity(流程引擎)从零入门到实战学习 1.什么是流程引擎? 2.为什么需要学习流程引擎? 3.为什么选择activiti? 本编文章将详细介绍什么是流程引擎,为什么学习,以及为什么选择act ...
- (一)什么是流程引擎?为什么学习流程引擎?
activity(流程引擎)从零入门到实战学习 1.什么是流程引擎? 2.为什么需要学习流程引擎? 3.为什么选择activiti? 本编文章将详细介绍什么是流程引擎,为什么学习,以及为什么选择act ...
- flac3d命令流实例大全_Activiti6.0工作流引擎深度解析
本课程将系统且深入源码讲解Activiti6.0工作流引擎的使用.配置.核心api以及BPMN2.0规范.数据库设计及模型映射,Spring Boot2.0集成,工作流平台搭建.部署与运维等,通过本课 ...
- 小白学流程引擎-FLowable(一) —FLowable是什么
小白学流程引擎-FLowable(一) | FLowable是什么 一.什么是流程引擎? 通俗的说,流程引擎就是多种业务对象在一起合作完成某件事情的步骤,把步骤变成计算机能理解的形式就是流程引擎. 流 ...
- camunda 流程执行追踪_流程引擎为什么选 Camunda
2019 年初我在重新设计我们组负责的流程系统时,选择了 Camunda 流程引擎,并基于该流程引擎实现了一套适配方案.以前就想做一次总结,但总拖着. 最近公司中台在做流程引擎选型,相关同事找我了解 ...
- Activiti6:模拟钉钉上面的请假流程(使用web画图并导出xml然后使用java执行流程)
1.声明 当前内容主要为本人学习和测试Activiti6这个工作流的基本操作,模拟钉钉上面的请假流程(简单版) 当前内容主要有: 使用官方的web-app方式画图 将当前流程图导出为xml配置 将xm ...
- java fixflow流程设计_Fixflow引擎解析(一)(介绍) - Fixflow开源流程引擎介绍
简介 Fixflow是一款开源的基于BPMN2.0标准的工作流引擎,由Fixflow开源联盟组织(Fixflow OpenSource Union) 进行社区化管理,引擎底层直接支持BPMN2.0国际 ...
最新文章
- 爬虫之数据提取jsonpath模块的使用场景和使用方法
- 《大道至简》第六章读后感
- 从命令行传递其他变量来制作
- Golang 数组传参
- 密码篇——对称加密—DES
- 2014\Province_C_C++_B\6 奇怪的分式
- 瀑布流第二种方式————基于ajax方式
- 挖掘机燃料_2020广东挖掘机工程机械出租公司合作共赢
- 遥感方法研究张掖市1999-2010年土地利用变化
- 前端学习(713)创建数组
- 1190: [HNOI2007]梦幻岛宝珠 - BZOJ
- 自动启动和关闭Oracle 脚本
- 函数专题:sum、row_number、count、rank\dense_rank over
- clickhouse时间日期函数
- Python爬虫实例(六)多进程下载金庸网小说
- STM32之485通信
- BZOJ2794: [Poi2012]Cloakroom【偏序+背包】
- 《HarmonyOS实战—交互的艺术》
- 双路服务器56核系统推荐,双路最高支持56核112线程!华硕妖板羡煞旁人
- ABB 120 六轴机械手臂编程调试(一)
热门文章
- 未明学院:量化训练营,帮我拿下新加坡国立大学定量金融offer!
- Camstudio-免费的屏幕录像软件中文版下载使用教程:
- windows10下面安装alphapose解决 ImportError : cannot import name ‘deform_conv_cuda‘
- Arduino使用 旋转电位器
- PHP服务器端API原理及示例讲解(接口开发)
- 3D电子沙盘构建方法与实现的方案
- 你真的了解Java系统启动流程吗?java基础教程完整版
- 黑苹果下idea启动项目慢
- 3.4.9.exec族函数及实战1
- 山西省计算机专业的专科排名,2021年山西十大专科学校排名 山西最好的高职院校...