一 代码
/**
* Copyright (C), 2020-2020, 软件公司
* FileName: ProcessInstanceQuery.java
* Author: cakin
* Date: 2020/4/25
* Description: 流程实例查询
*/
package com.syc.activiti.chapter9;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.runtime.ProcessInstance;
/**
* @className: ProcessInstanceQuery
* @description: 流程实例查询
* @date: 2020/4/25
* @author: cakin
*/
@Slf4j
public class ProcessInstanceQuery {
public static void main( String[] args ) {
// 创建流程引擎
ProcessEngine engine = ProcessEngines.getDefaultProcessEngine();
// 得到流程存储服务实例
RepositoryService repositoryService = engine.getRepositoryService();
// 得到运