zhangherong
2025-07-11 44a7e1614ac9894d65ff1159fd7d7747b0f19922
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
package org.jeecg.modules.flowable.apithird.business.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.flowable.apithird.business.entity.FlowMyBusiness;
import org.jeecg.modules.flowable.apithird.entity.SysUser;
 
import java.util.List;
 
/**
 * @Description: 流程业务扩展表
 * @Author: jeecg-boot
 * @Date:   2021-11-25
 * @Version: V1.0
 */
public interface IFlowMyBusinessService extends IService<FlowMyBusiness> {
    /**
     * 根据流程实例id 获取 流程实例
     * @param instanceId 流程实例id
     * @return
     */
    FlowMyBusiness getFlowMyBusiness(String instanceId);
 
    /**
     * 根据流程实例id 获取 流程实例
     * @param instanceId 流程实例id
     * @return
     */
    FlowMyBusiness getFlowMyBusiness(String instanceId, String taskId);
 
    /**
     * 获取流程实例
     * @param dataId 业务Id
     * @return
     */
    FlowMyBusiness selectByDataId(String dataId);
 
    /**
     * 获取流程实例 多实例并行,存在多条记录
     * @param dataId
     * @return
     */
    List<FlowMyBusiness> selectListByDataId(String dataId);
 
    /**
     * 校验用户是否可完成此任务
     * @param flowMyBusiness
     * @param user
     * @return
     */
    boolean isUserAuthorized(FlowMyBusiness flowMyBusiness, LoginUser user);
 
    /**
     * 领取任务
     * @param taskId
     * @param user
     * @return
     */
    boolean claimTask(String taskId, LoginUser user);
}