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
package jnpf.flowable.controller;
 
import jnpf.base.ActionResult;
import jnpf.flowable.model.task.FlowModel;
import jnpf.flowable.model.task.TaskTo;
import jnpf.flowable.service.LaunchUserService;
import jnpf.flowable.service.TaskService;
import jnpf.flowable.util.OperatorUtil;
import jnpf.flowable.TaskApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
 
/**
 * 类的描述
 *
 * @author JNPF@YinMai Info. Co., Ltd
 * @version 5.0.x
 * @since 2024/5/28 14:32
 */
@RestController
@RequestMapping("/task")
public class TaskForFileController implements TaskApi {
    @Autowired
    private TaskService taskService;
    @Autowired
    private OperatorUtil operatorUtil;
 
    @Override
    @PostMapping("/launchFlow")
    public ActionResult launchFlow(@RequestBody FlowModel flowModel) {
        try {
            return operatorUtil.launchFlow(flowModel);
        } catch (Exception e) {
            e.printStackTrace();
            return ActionResult.fail(e.getMessage());
        }
    }
 
    @Override
    @PostMapping("/getFlowTodoCount")
    public TaskTo getFlowTodoCount(@RequestBody TaskTo taskTo) {
        return taskService.getFlowTodoCount(taskTo);
    }
 
}