zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
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
package cn.autoform.web.controller.process;
 
import java.util.concurrent.TimeoutException;
 
import javax.annotation.Resource;
 
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
 
import cn.autoform.bean.ProcessState;
import cn.autoform.fw.exception.FormClientException;
import cn.autoform.fw.exception.RestResult;
import cn.autoform.fw.utility.RestResultGenerator;
import cn.autoform.web.service.process.ProcessStateService;
 
@RestController
public class ProcessStateController {
    
    @Resource
    private ProcessStateService process;
    
    //暂时把路径写在这
    @PostMapping("/get/processState")
    public RestResult<ProcessState> selectState(@RequestBody ProcessState state) throws TimeoutException, FormClientException{
        return RestResultGenerator.genSuccessResult(process.selectState(state));
    }
}