Commit 6696783c authored by chenhao's avatar chenhao

添加两个获取当前登陆人可以执行的任务列表,已经执行的任务历史列表

parent 0ce5e1bf
......@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import java.text.ParseException;
import com.alibaba.fastjson.JSONObject;
import feign.Response;
......@@ -166,4 +166,22 @@ public interface WorkflowFeignService {
*/
@RequestMapping(value = "/task/")
JSONObject getTask(@RequestParam(value="processInstanceId") String processInstanceId);
/**
* 获取当前登录人所有可以执行的任务列表
* @param definitionKey
* @return
* @throws Exception
*/
@RequestMapping(value = "/task/getCurrentUserAllTaskList/{definitionKey}",method = RequestMethod.GET)
JSONObject getCurrentUserAllTaskList(@PathVariable String definitionKey) throws Exception;
/**
* 获取当前登录人所有已执行的历史任务列表
* @param processDefinitionKey
* @return
* @throws ParseException
*/
@RequestMapping(value = "/activitiHistory/processes/queryCurrentUserHistoryTasks/list/{processDefinitionKey}",method = RequestMethod.GET)
JSONObject queryCurrentUserHistoryTasks(@PathVariable String processDefinitionKey)throws ParseException;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment