连线校验过滤制度、表单类型
This commit is contained in:
parent
81979353d2
commit
39d2f3158f
Binary file not shown.
@ -1,7 +1,5 @@
|
||||
package com.actionsoft.apps.coe.pal.publisher;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import com.actionsoft.apps.AppsConst;
|
||||
import com.actionsoft.apps.coe.pal.pal.repository.PALRepositoryQueryAPIManager;
|
||||
import com.actionsoft.apps.coe.pal.publisher.client.web.ProcessPublishClientWeb;
|
||||
@ -18,7 +16,8 @@ import com.actionsoft.bpms.server.bind.annotation.Mapping;
|
||||
import com.actionsoft.bpms.server.conf.server.AWSServerConf;
|
||||
import com.actionsoft.sdk.local.SDK;
|
||||
import com.actionsoft.sdk.local.api.PortalAPI;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
@Controller
|
||||
public class PublisherController {
|
||||
@ -177,7 +176,6 @@ public class PublisherController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
//流程发布-新增MA流程实例
|
||||
@Mapping("com.actionsoft.apps.coe.pal.ma.publisher_save")
|
||||
public String saveMaPublishInstance(UserContext me, String title, String teamId, String teamName, String wsId, String processInstId) {
|
||||
@ -186,9 +184,6 @@ public class PublisherController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//流程发布-流程办理页面
|
||||
@Mapping("com.actionsoft.apps.coe.pal.publisher_handle")
|
||||
public String toPublishInstanceHandle(UserContext me, String processInstId, String taskInstId, String openState) {
|
||||
@ -377,30 +372,35 @@ public class PublisherController {
|
||||
ProcessPublishClientWeb web = new ProcessPublishClientWeb(me);
|
||||
return web.getOrgRelativeModel(orgModelId, modelIds);
|
||||
}
|
||||
|
||||
//生成流程手册
|
||||
@Mapping("com.actionsoft.apps.coe.pal.publisher_openProcess")
|
||||
public String openProcess(UserContext me, String wsId, String fileId, String teamId, String processInstId, String type) {
|
||||
ProcessPublishWeb web = new ProcessPublishWeb(me);
|
||||
return web.openProcess(me, wsId, fileId, teamId, processInstId, type);
|
||||
}
|
||||
|
||||
//保存子表
|
||||
@Mapping("com.actionsoft.apps.coe.pal.publisher_savebefore")
|
||||
public String savebefore(UserContext me, String ProFile_N, String ProFile_NId, String processInstId, String ProFile_c, String ProFile_CId, String ChangeDFileNameNew, String AfterChange_CId, String ProFile_s, String ProFile_SId, String PublishDesc, String StopDesc, String ChangeDesc, String N_taskId, String C_taskId, String S_taskId) {
|
||||
ProcessPublishWeb web = new ProcessPublishWeb(me);
|
||||
return web.savebefore(ProFile_N, ProFile_NId, processInstId, ProFile_c, ProFile_CId, ChangeDFileNameNew, AfterChange_CId, ProFile_s, ProFile_SId, PublishDesc, StopDesc, ChangeDesc, N_taskId, C_taskId, S_taskId);
|
||||
}
|
||||
|
||||
//查询
|
||||
@Mapping("com.actionsoft.apps.coe.pal.publisher_selectcns")
|
||||
public String selectcns(UserContext me, String processInstId) {
|
||||
ProcessPublishWeb web = new ProcessPublishWeb(me);
|
||||
return web.selectcns(processInstId);
|
||||
}
|
||||
|
||||
//预览流程手册
|
||||
@Mapping("com.actionsoft.apps.coe.pal.publisher_ReportPreview")
|
||||
public String ReportPreview(UserContext me, String processInstId, String type) {
|
||||
ProcessPublishWeb web = new ProcessPublishWeb(me);
|
||||
return web.ReportPreview(me, processInstId, type);
|
||||
}
|
||||
|
||||
//快速查询
|
||||
@Mapping("com.actionsoft.apps.coe.pal.publisher_tree_query")
|
||||
public String treeQuery(UserContext me, String wsId, String scope, String queryType, String autoContent) {
|
||||
@ -410,6 +410,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 获取字表数据
|
||||
*
|
||||
* @param me
|
||||
* @param processInstId
|
||||
* @return
|
||||
@ -421,9 +422,9 @@ public class PublisherController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 是否开启三员管理
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Mapping("com.actionsoft.apps.coe.pal.publisher_high_security_mode_query")
|
||||
@ -436,6 +437,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 打开流程详情页面
|
||||
*
|
||||
* @param me
|
||||
* @param uuid
|
||||
* @return
|
||||
@ -446,9 +448,9 @@ public class PublisherController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 打开流程详情页面 (移动端)
|
||||
*
|
||||
* @param me
|
||||
* @param uuid
|
||||
* @return
|
||||
@ -459,10 +461,9 @@ public class PublisherController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 预览流程手册
|
||||
*
|
||||
* @param me
|
||||
* @param taskId
|
||||
* @return
|
||||
@ -475,6 +476,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 查询发布数据的树结构
|
||||
*
|
||||
* @param me
|
||||
* @param type new change stop 三种类型查询不同的树结构
|
||||
* @param wsId
|
||||
@ -488,9 +490,9 @@ public class PublisherController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 查询发布数据的ma类型树结构
|
||||
*
|
||||
* @param me
|
||||
* @param type new change stop 三种类型查询不同的树结构
|
||||
* @param wsId
|
||||
@ -504,9 +506,9 @@ public class PublisherController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 根据当前环境返回wsid
|
||||
*
|
||||
* @param me
|
||||
* @param type new change stop
|
||||
* @param wsId
|
||||
@ -536,6 +538,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 创建流程手册
|
||||
*
|
||||
* @param me
|
||||
* @param uuid
|
||||
* @param teamId
|
||||
@ -550,6 +553,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 查询流程的未发布版本
|
||||
*
|
||||
* @param me
|
||||
* @param uuid
|
||||
* @param teamId
|
||||
@ -564,6 +568,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 查询流程的流程手册ID
|
||||
*
|
||||
* @param me
|
||||
* @param uuid
|
||||
* @param teamId
|
||||
@ -578,6 +583,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 表单保存/办理之前执行
|
||||
*
|
||||
* @param me
|
||||
* @param data
|
||||
* @param teamId
|
||||
@ -592,6 +598,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 查询流程发布表数据(批量)
|
||||
*
|
||||
* @param me
|
||||
* @param processInstId
|
||||
* @param wsId
|
||||
@ -611,15 +618,16 @@ public class PublisherController {
|
||||
* @param wsId
|
||||
* @return
|
||||
*/
|
||||
@Mapping("com.actionsoft.apps.coe.pal.publisher_output_pr_reports_create")
|
||||
/*@Mapping("com.actionsoft.apps.coe.pal.publisher_output_pr_reports_create")
|
||||
public String createOutputPrReports(UserContext me, String uuids, String teamId, String wsId) {
|
||||
ProcessPublishWeb web = new ProcessPublishWeb(me);
|
||||
return web.createOutputPrReports(wsId, teamId, uuids);
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
/**
|
||||
* 查询发布流程中支持文件形状属性上传附件
|
||||
*
|
||||
* @param me
|
||||
* @param uuids
|
||||
* @param teamId
|
||||
@ -633,9 +641,9 @@ public class PublisherController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 将关联未发布数据插入发布表中
|
||||
*
|
||||
* @param me
|
||||
* @param uuids
|
||||
* @param teamId
|
||||
@ -651,6 +659,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 查询流程的其他版本并默认查询结果的第一条创建流程手册
|
||||
*
|
||||
* @param me
|
||||
* @param data
|
||||
* @param teamId
|
||||
@ -665,6 +674,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 批量查询流程的流程手册ID
|
||||
*
|
||||
* @param me
|
||||
* @param uuids
|
||||
* @param teamId
|
||||
@ -679,6 +689,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 子表数据批量保存
|
||||
*
|
||||
* @param me
|
||||
* @param wsId
|
||||
* @param teamId
|
||||
@ -695,6 +706,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 表单保存/办理前执行(批量)
|
||||
*
|
||||
* @param me
|
||||
* @param wsId
|
||||
* @param teamId
|
||||
@ -712,6 +724,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 校验文件类型是否可打开
|
||||
*
|
||||
* @param me
|
||||
* @param uuid
|
||||
* @return
|
||||
@ -724,6 +737,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 查询流程实例bo表状态字段
|
||||
*
|
||||
* @param me
|
||||
* @param processInstId
|
||||
* @return
|
||||
@ -749,6 +763,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 获取流程的L1 L2 L3数据
|
||||
*
|
||||
* @param me
|
||||
* @param processInstId
|
||||
* @param wsId
|
||||
@ -762,10 +777,9 @@ public class PublisherController {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 根据矩阵信息查询审批信息
|
||||
*
|
||||
* @param me
|
||||
* @param level1
|
||||
* @param level2
|
||||
@ -783,6 +797,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 权限矩阵录入的时候,获取默认的单位和单位编码
|
||||
*
|
||||
* @param me
|
||||
* @return
|
||||
*/
|
||||
@ -794,6 +809,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 下载日志
|
||||
*
|
||||
* @param me
|
||||
* @param taskId
|
||||
* @return
|
||||
@ -803,6 +819,7 @@ public class PublisherController {
|
||||
ProcessPublishWeb publishWeb = new ProcessPublishWeb(me);
|
||||
return publishWeb.downloadOutput(taskId, uuid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取流程模型的形状属性列表
|
||||
*
|
||||
@ -845,6 +862,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 重新生成手册
|
||||
*
|
||||
* @param me
|
||||
* @param plId
|
||||
* @return
|
||||
@ -858,6 +876,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 发布变更流程:下拉获取最新架构进行赋值
|
||||
*
|
||||
* @param me
|
||||
* @param plId
|
||||
* @return
|
||||
@ -870,6 +889,7 @@ public class PublisherController {
|
||||
|
||||
/**
|
||||
* 中断任务操作
|
||||
*
|
||||
* @param me
|
||||
* @param plId
|
||||
* @return
|
||||
|
||||
@ -253,6 +253,7 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
public void defineQualityCheck(String uuid){
|
||||
|
||||
PALRepositoryModel model = PALRepositoryCache.getCache().get(uuid);
|
||||
if(!model.getMethodId().equals("control.policy") && !model.getMethodId().equals("data.form")){
|
||||
String vison = getVison(uuid);
|
||||
List<JSONObject> elements_fei = getShapeJsonToJsonObject2(vison);
|
||||
StringBuffer sb6= new StringBuffer();
|
||||
@ -322,9 +323,13 @@ public class PublishFormBeforeSaveEvent extends InterruptListener implements Int
|
||||
sb6.append("校验未通过,请检查模型是否都已连线!");
|
||||
sbs.append(sb6);
|
||||
}
|
||||
|
||||
if (sbs.length()>0){
|
||||
throw new BPMNError("0313", sbs.toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/************************************文件属性校验************************************/
|
||||
ResponseObject ro = ResponseObject.newOkResponse();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user