1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package org.dromara.workflow.service;
 
import jakarta.servlet.http.HttpServletResponse;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.workflow.domain.bo.ModelBo;
import org.dromara.workflow.domain.vo.ModelVo;
import org.flowable.engine.repository.Model;
 
 
/**
 * 模型管理 服务层
 *
 * @author may
 */
public interface IActModelService {
    /**
     * 分页查询模型
     *
     * @param modelBo 模型参数
     * @return 返回分页列表
     */
    TableDataInfo<Model> page(ModelBo modelBo);
 
    /**
     * 新增模型
     *
     * @param modelBo 模型请求对象
     * @return 结果
     */
    boolean saveNewModel(ModelBo modelBo);
 
    /**
     * 查询模型
     *
     * @param modelId 模型id
     * @return 模型数据
     */
    ModelVo getInfo(String modelId);
 
    /**
     * 修改模型信息
     *
     * @param modelBo 模型数据
     * @return 结果
     */
    boolean update(ModelBo modelBo);
 
    /**
     * 编辑模型XML
     *
     * @param modelBo 模型数据
     * @return 结果
     */
    boolean editModelXml(ModelBo modelBo);
 
    /**
     * 模型部署
     *
     * @param id 模型id
     * @return 结果
     */
    boolean modelDeploy(String id);
 
    /**
     * 导出模型zip压缩包
     *
     * @param modelId  模型id
     * @param response 相应
     */
    void exportZip(String modelId, HttpServletResponse response);
}