ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package jnpf.flowable.service;
 
import jnpf.base.service.SuperService;
import jnpf.exception.WorkFlowException;
import jnpf.flowable.entity.TriggerTaskEntity;
import jnpf.flowable.model.trigger.TriggerInfoListModel;
import jnpf.flowable.model.trigger.TriggerInfoModel;
import jnpf.flowable.model.trigger.TriggerPagination;
import jnpf.flowable.model.trigger.TriggerTaskModel;
 
import java.util.List;
 
/**
 * 类的描述
 *
 * @author JNPF@YinMai Info. Co., Ltd
 * @version 5.0.x
 * @since 2024/9/10 17:12
 */
public interface TriggerTaskService extends SuperService<TriggerTaskEntity> {
    /**
     * 获取任务下的触发记录
     *
     * @param taskId   任务主键
     * @param nodeCode 节点编码
     */
    List<TriggerInfoListModel> getListByTaskId(String taskId, String nodeCode);
 
    /**
     * 判断是否有任务流程
     *
     * @param taskId   任务主键
     * @param nodeCode 节点编码
     */
    boolean existTriggerTask(String taskId, String nodeCode);
 
    /**
     * 列表
     *
     * @param pagination 分页参数
     */
    List<TriggerTaskModel> getList(TriggerPagination pagination);
 
    /**
     * 详情
     *
     * @param id 主键
     */
    TriggerInfoModel getInfo(String id) throws WorkFlowException;
 
    /**
     * 重试
     *
     * @param id 主键
     */
    void retry(String id) throws Exception;
 
    /**
     * 保存
     *
     * @param entity 实体
     */
    void saveTriggerTask(TriggerTaskEntity entity);
 
    /**
     * 更新
     *
     * @param entity 实体
     */
    void updateTriggerTask(TriggerTaskEntity entity);
 
    /**
     * 批量删除
     *
     * @param ids 任务流程实例主键
     */
    void batchDelete(List<String> ids);
 
    /**
     * 判断流程版本下是否存在任务流程
     *
     * @param flowIds 流程版本主键集合
     */
    boolean checkByFlowIds(List<String> flowIds);
}