ljy121 1 year ago
parent
commit
7d425a2f5b

+ 0 - 473
zjugis-workflow/src/main/java/com/zjugis/z_workflow/serviceApi/FlowCatalogApiController.java

@@ -1,473 +0,0 @@
-/**
- * Copyright (C), 2015-2019, XXX有限公司
- * FileName: userApi
- * Author:   Administrator
- * Date:     2019-09-05 17:25
- * Description:
- * History:
- * <author>          <time>          <version>          <desc>
- * 作者姓名           修改时间           版本号              描述
- */
-package com.zjugis.z_workflow.serviceApi;
-
-
-import com.zjugis.framework.workflow.model.BaseController;
-import javafx.scene.control.Pagination;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RestController;
-
-import java.util.Date;
-import java.util.HashMap;
-
-/**
- * 〈一句话功能简述〉<br>
- * 〈〉
- *
- * @author Administrator
- * @create 2019-09-05
- * @since 1.0.0
- */
-@RestController
-@Slf4j
-public class FlowCatalogApiController extends BaseController {
-
-    //region 获取/设置流程实例信息相关
-
-    /**
-     * 设置流程描述
-     * @return
-     */
-    @RequestMapping(method = RequestMethod.POST)
-    public String SetFlowInstanceDescript(String flowInstanceId, String descrip) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 设置流程编号
-     * @return
-     */
-    public String SetFlowInstanceCode(String flowInstanceId, String flowCode) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 获取流程实例信息
-     * @param flowInstanceId
-     * @return
-     */
-    public String GetFlowInstanceInfo(String flowInstanceId) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 获取活动实例信息
-     * @param activityInstanceID
-     * @return
-     */
-    public String GetActivityInstanceInfo(String activityInstanceID) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 获取流程实例下所有的活动
-     * @param flowInstanceId
-     * @return
-     */
-    public String GetFlowActivityList(String flowInstanceId) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 获取活动参与人
-     * @param activityInstanceID
-     * @return
-     */
-    public String GetPartakeListByActivityInstanceID(String activityInstanceID) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     *  根据参与人ID获取参与人
-     *
-     * @param PartakeID
-     * @return
-     */
-    public String GetPartakeByPartakeID(String PartakeID) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 根据活动ID获取退回记录
-     * @param activityInstanceID
-     * @return
-     */
-    public String GetSendbackRecordByActivityInstanceID(String activityInstanceID) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 获取活动意见表
-     * @param activityInstanceID
-     * @return
-     */
-    public String GetActivityInstanceReviewList(String activityInstanceID) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 获取常用意见
-     * @param
-     * @return
-     */
-    public String GetCommonReviewOpinionList(String userId, String activityInstanceID) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 设置活动参与人意见
-     * @param
-     * @return
-     */
-    public String SetPersionActivityReview(String userId, String activityInstanceID, String reviewContent) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-    //endregion
-
-    //region 各种列表数据接口
-
-    /**
-     * 获取运行中的活动
-     * @param
-     * @return
-     */
-    public String GetRunningActivity(Object searchEntity, Pagination page) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 获取挂起的活动
-     * @param
-     * @return
-     */
-    public String GetHangUpActivity(Object searchEntity, Pagination page) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 获取已作作废的活动
-     * @param
-     * @return
-     */
-    public String GetNullifyActivity(Object searchEntity, Pagination page) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 获取已完成的活动(未归档)
-     * @param
-     * @return
-     */
-    public String GetFinishActivity(Object searchEntity, Pagination page) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 获取退回的活动
-     * @param
-     * @return
-     */
-    public String GetSendBackActivity(Object searchEntity, Pagination page) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 获取超时活动
-     * @param
-     * @return
-     */
-    public String GetTimeOutActivity(Object searchEntity, Pagination page) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 获取已归档流程
-     * @param
-     * @return
-     */
-    public String GetArchingFlow(Object searchEntity, Pagination page) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    //endregion
-
-    //region 转件控制相关
-
-    /**
-     * 创建流程
-     * @param
-     * @return
-     */
-    public String CreateFlowInstance(String flowInstanceId, String userId) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 接件
-     * @param
-     * @return
-     */
-    public String ReceiveFlowInstance(String activityInstanceID, String userId) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 转件
-     * @param Entity 相关ID(原活动,目标活动,参与人IDS)
-     * @return
-     */
-    public String Transfer(Object Entity) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 追回活动
-     * @param
-     * @return
-     */
-    public String RecoverActivity (String activityInstanceID) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 挂起流程
-     * @param
-     * @return
-     */
-    public String HangUpFlow(String flowInstanceId) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 退回活动
-     * @param Entity (当前活动id,退回目标活动模板ID)
-     * @return
-     */
-    public String SendBackActivity(Object Entity) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 作废流程
-     * @param
-     * @return
-     */
-    public String NullifyFlow(String flowInstanceId) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 强制归档
-     * @param
-     * @return
-     */
-    public String ForcedFlowArchive(String flowInstanceId) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 删除流程
-     * @param
-     * @return
-     */
-    public String DeleteFlowInstance(String flowInstanceId) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 设置活动超时时间
-     * @param
-     * @return
-     */
-    public String SetActivityTimeLimit(String activityInstanceID, Date date) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 设置流程参数
-     * @param
-     * @return
-     */
-    public String SetFlowParameters(String flowInstanceId, HashMap<String,String> parmater) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-    /**
-     * 获取流程参数
-     * @param
-     * @return
-     */
-    public String GetFlowParameters(String flowInstanceId) {
-        try {
-            return "";
-        } catch (Exception ex) {
-            log.error(ex.getMessage(),ex);
-            return error(ex.getMessage(), ErrorCode.DEFAULT);
-        }
-    }
-
-
-    //endregion
-
-
-
-
-
-
-}