一、压缩文件
将内容压缩
二、代码实现
ProcessEngine engine = ProcessEngines.getDefaultProcessEngine();
//根据当前类的路径获取到 资源文件内容
InputStream inputStream = this.getClass()
.getClassLoader()
.getResourceAsStream("bpmn/evection.zip");
ZipInputStream zipInputStream = new ZipInputStream(inputStream);
RepositoryService repositoryService = engine.getRepositoryService();
//使用压缩包进行流程部署
repositoryService.createDeployment()
.addZipInputStream(zipInputStream)
.deploy();