1、请假流程,activiti 25张表存储流程走到哪一步,请假流程还包括请假当事人,请假内容,请假开始时间,请假结束时间,事由,状态类型由一个请假表存储。两个表关联就是通过businesskey业务主键。需要将请假单的id存入activiti表。
2、act_ru_execution流程实例执行表中间有一个businesskey,存储业务主键。流程实例执行一步,就会里面插入一条数据。
存储businesskey操作如下
package com.xiaofeiyang.activiti; import org.activiti.engine.ProcessEngine; import org.activiti.engine.ProcessEngines; import org.activiti.engine.RuntimeService; import org.activiti.engine.runtime.ProcessInstance; /** * @author: yangchun * @description: * @date: Created in 2020-06-01 16:57 */ public class BusinessKeyAdd { public static void main(String[] args) { ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine(); RuntimeService runtimeService = processEngine.getRuntimeService(); ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("myProcess_1","1"); System.out.println(processInstance.getBusinessKey()); } }
原文:https://www.cnblogs.com/xiaofeiyang/p/13046976.html