12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- package com.idea.oa.activiti.controller;
- import com.github.pagehelper.PageInfo;
- import com.idea.oa.activiti.exception.FlowException;
- import com.idea.oa.activiti.service.ProActiService;
- import com.rockstar.common.base.BaseController;
- import com.rockstar.frame.model.extend.DateTrans;
- import com.rockstar.frame.model.extend.TableSplitResult;
- import com.rockstar.frame.model.extend.Tablepar;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.ResponseBody;
- import java.util.Map;
- /**
- * Created by pengyq on 2020.
- */
- @Controller
- @RequestMapping(value = "ProActController")
- public class ProActiController extends BaseController {
- @Autowired
- private ProActiService proActiService;
- /**
- * 启动流程引擎
- *
- * @param mapInfo
- * @return
- */
- @PostMapping(value = "startFlow", produces = {"application/json;charset=UTF-8"})
- @ResponseBody
- public Object startFlow(Map<String, Object> mapInfo) throws FlowException, com.rockstar.flow.exception.FlowException {
- proActiService.startAutoTask(mapInfo);
- return "成功";
- }
- /**
- *
- * @param defineKey apply_leave, apply_free
- * @param processFile processes/ApplyLeave.bpmn, processes/ApplyFree.bpmn
- * @return
- */
- // @PostMapping(value = "deployProcess",produces = {"application/json;charset=UTF-8"})
- // @ResponseBody
- // public AjaxResult deployProcess(String defineKey, String processFile) {
- // return success(activitiService.deployProcess(defineKey,processFile));
- // }
- }
|