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));
|
}
|
}
|