|
@@ -26,40 +26,40 @@ import javax.annotation.Resource;
|
|
|
public class ActivitiController {
|
|
|
|
|
|
@Resource
|
|
|
- private ActivitiService activityConsumerService;
|
|
|
+ private ActivitiService activitiService;
|
|
|
|
|
|
@ApiOperation(value = "注册流程")
|
|
|
@RequestMapping(value = "/createDeployment", method = RequestMethod.POST)
|
|
|
public Result createDeployment(@RequestParam(value = "processFileName") String processFileName) {
|
|
|
- activityConsumerService.createDeployment(processFileName);
|
|
|
+ activitiService.createDeployment(processFileName);
|
|
|
return ResultUtil.ok();
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "启动流程")
|
|
|
@RequestMapping(value = "/startActivityDemo", method = RequestMethod.POST)
|
|
|
public Result startActivityDemo(@RequestParam(value = "processKey") String processKey) {
|
|
|
- activityConsumerService.startActivityDemo(processKey);
|
|
|
+ activitiService.startActivityDemo(processKey);
|
|
|
return ResultUtil.ok();
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取待办")
|
|
|
@RequestMapping(value = "/getTaskList", method = RequestMethod.POST)
|
|
|
public Result getTaskList() {
|
|
|
- activityConsumerService.getTaskList();
|
|
|
+ activitiService.getTaskList();
|
|
|
return ResultUtil.ok();
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "提交")
|
|
|
@RequestMapping(value = "/complete", method = RequestMethod.POST)
|
|
|
public Result complete(@RequestParam(value = "taskId") String taskId) {
|
|
|
- activityConsumerService.complete(taskId);
|
|
|
+ activitiService.complete(taskId);
|
|
|
return ResultUtil.ok();
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "根据流程id直接结束流程")
|
|
|
@RequestMapping(value = "/deleteProcessInstance", method = RequestMethod.POST)
|
|
|
public Result deleteProcessInstance(@RequestParam(value = "flowId") String flowId) {
|
|
|
- activityConsumerService.deleteProcessInstance(flowId);
|
|
|
+ activitiService.deleteProcessInstance(flowId);
|
|
|
return ResultUtil.ok();
|
|
|
}
|
|
|
}
|