提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.api.task; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.CommonResult; |
|
4 |
import com.iailab.module.bpm.api.task.dto.BpmProcessInstanceCreateReqDTO; |
|
5 |
import com.iailab.module.bpm.service.task.BpmProcessInstanceService; |
|
6 |
import org.springframework.validation.annotation.Validated; |
|
7 |
import org.springframework.web.bind.annotation.RestController; |
|
8 |
|
|
9 |
import javax.annotation.Resource; |
|
10 |
import javax.validation.Valid; |
|
11 |
|
|
12 |
import static com.iailab.framework.common.pojo.CommonResult.success; |
|
13 |
|
|
14 |
/** |
|
15 |
* Flowable 流程实例 Api 实现类 |
|
16 |
* |
|
17 |
* @author iailab |
|
18 |
* @author jason |
|
19 |
*/ |
|
20 |
@RestController |
|
21 |
@Validated |
|
22 |
public class BpmProcessInstanceApiImpl implements BpmProcessInstanceApi { |
|
23 |
|
|
24 |
@Resource |
|
25 |
private BpmProcessInstanceService processInstanceService; |
|
26 |
|
|
27 |
@Override |
|
28 |
public CommonResult<String> createProcessInstance(Long userId, @Valid BpmProcessInstanceCreateReqDTO reqDTO) { |
|
29 |
return success(processInstanceService.createProcessInstance(userId, reqDTO)); |
|
30 |
} |
|
31 |
|
|
32 |
} |