|
@@ -209,6 +209,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "strartFlow")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public BaseResult strartFlow(@RequestParam String menuId,
|
|
|
@RequestParam String companyId,
|
|
|
@RequestParam String businessKey,
|
|
@@ -256,6 +257,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "myStrartedFlow")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public BaseResult myStrartedFlow(HttpServletRequest request,
|
|
|
@RequestParam(value = "excutionName", required = false) String excutionName,
|
|
|
@RequestParam(value = "processDefName", required = false) String processDefName,
|
|
@@ -280,6 +282,7 @@ public class FlowController {
|
|
|
@RequestMapping(value = "deleteProcessInstanceById")
|
|
|
@ResponseBody
|
|
|
@Transactional(rollbackFor=Exception.class)
|
|
|
+ @Log
|
|
|
public BaseResult deleteProcessInstanceById(@RequestParam("processInstanceId") String processInstanceId,
|
|
|
@RequestParam("reason")String reason,
|
|
|
@RequestParam(value = "formData", required = false)String formData,
|
|
@@ -308,6 +311,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "genProcessDiagram",produces = MediaType.IMAGE_JPEG_VALUE)
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public void genProcessDiagram(@RequestParam("processId") String processId, HttpServletResponse response) throws IOException {
|
|
|
flowProcess.genProcessDiagram(response, processId);
|
|
|
}
|
|
@@ -319,6 +323,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "getTaskByUserId")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public List<Task> getTaskByUserId(@RequestParam("userId") String userId){
|
|
|
return flowTask.getTaskByUserId(userId);
|
|
|
}
|
|
@@ -330,6 +335,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "getTaskByGroupId")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public List<Task> getTaskByGroupId(@RequestParam(value = "groupId") String groupId){
|
|
|
return flowTask.getTaskByGroupId(groupId);
|
|
|
}
|
|
@@ -343,6 +349,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "getMyTask")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public BaseResult getMyTask(HttpServletRequest request,
|
|
|
@RequestParam(value = "excutionName", required = false) String excutionName,
|
|
|
@RequestParam(value = "processDefName", required = false) String processDefName,
|
|
@@ -367,6 +374,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "getMyJoinProcint")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public BaseResult getMyJoinProcint(HttpServletRequest request,
|
|
|
@RequestParam(value = "excutionName", required = false) String excutionName,
|
|
|
@RequestParam(value = "processDefName", required = false) String processDefName,
|
|
@@ -386,6 +394,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "claimTask")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public String claimTask(HttpServletRequest request, @RequestParam("taskId") String taskId){
|
|
|
LoginUser user = tokenService.getUser(request);
|
|
|
flowTask.claimTask(user.getSysUser().getStaffCode(), taskId);
|
|
@@ -406,6 +415,7 @@ public class FlowController {
|
|
|
@RequestMapping(value = "completeTask")
|
|
|
@ResponseBody
|
|
|
@Transactional(rollbackFor=Exception.class)
|
|
|
+ @Log
|
|
|
public BaseResult completeTask( @RequestParam("files") MultipartFile[] files,
|
|
|
@RequestParam("taskId") String taskId,
|
|
|
@RequestParam(value = "formData", required = false) String formData,
|
|
@@ -442,6 +452,7 @@ public class FlowController {
|
|
|
@Transactional(rollbackFor=Exception.class)
|
|
|
@RequestMapping(value = "transferTask")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public BaseResult transferTask(
|
|
|
@RequestParam("taskId") String taskId,
|
|
|
@RequestParam("acceptUserId") String acceptUserId) {
|
|
@@ -454,6 +465,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "getUserInf")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public Map<String, Object> getUserInf(HttpServletRequest request){
|
|
|
Map res = new HashMap();
|
|
|
LoginUser loginUser = tokenService.getUser(request);
|
|
@@ -473,6 +485,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "getProcessDefs")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public List<Map<String, String>> getProcessDefs(){
|
|
|
List<ProcessDefinition> processDefList = flowModel.allProcessDef();
|
|
|
|
|
@@ -493,6 +506,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "getProcessHisTaskList")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public BaseResult getProcessHisTaskList(@RequestParam("processId") String processId) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
|
|
|
List<HistoricActivityInstance> hisTaskList = flowTask.getHisTaskList(processId);
|
|
|
|
|
@@ -535,6 +549,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "getTaskAttachments")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public BaseResult getTaskAttachments(@RequestParam("taskId") String taskId){
|
|
|
return new BaseResult(flowTask.getTaskAttachments(taskId));
|
|
|
}
|
|
@@ -546,6 +561,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "deleteAttachment")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public String deleteAttachment(@RequestParam("attachmentId") String attachmentId){
|
|
|
flowTask.deleteAttachment(attachmentId);
|
|
|
return "1";
|
|
@@ -559,6 +575,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "getAttachmentContent")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public String getAttachmentContent(@RequestParam("attachmentId") String attachmentId, HttpServletResponse response) {
|
|
|
Attachment attachment = flowTask.getAttachment(attachmentId);
|
|
|
InputStream inputStream = flowTask.getAttachmentContent(attachmentId);
|
|
@@ -613,6 +630,7 @@ public class FlowController {
|
|
|
@RequestMapping(value = "handUpProcessInstance")
|
|
|
@ResponseBody
|
|
|
@Transactional(rollbackFor=Exception.class)
|
|
|
+ @Log
|
|
|
public String handUpProcessInstance(
|
|
|
@RequestParam("files") MultipartFile[] files,
|
|
|
@RequestParam("taskId") String taskId,
|
|
@@ -633,6 +651,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "activateProcessInstance")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public String activateProcessInstance(
|
|
|
@RequestParam(value = "taskId") String taskId
|
|
|
) {
|
|
@@ -648,6 +667,7 @@ public class FlowController {
|
|
|
*/
|
|
|
@RequestMapping(value = "findReturnUserTask")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public List findReturnUserTask(
|
|
|
@RequestParam(value = "taskId") String taskId
|
|
|
) {
|
|
@@ -663,6 +683,7 @@ public class FlowController {
|
|
|
@Transactional(rollbackFor=Exception.class)
|
|
|
@RequestMapping(value = "flowReturn")
|
|
|
@ResponseBody
|
|
|
+ @Log
|
|
|
public BaseResult flowReturn(
|
|
|
@RequestParam("taskId") String taskId,
|
|
|
@RequestParam("targetKey") String targetKey
|