发布后去掉MA发布代码
This commit is contained in:
parent
cf2b9ade2f
commit
016a9cc0dc
Binary file not shown.
@ -35,7 +35,10 @@ import com.actionsoft.bpms.util.DBSql;
|
||||
import com.actionsoft.bpms.util.UUIDGener;
|
||||
import com.actionsoft.bpms.util.UtilDate;
|
||||
import com.actionsoft.bpms.util.UtilString;
|
||||
import com.actionsoft.exception.AWSAPIException;
|
||||
import com.actionsoft.exception.AWSDataAccessException;
|
||||
import com.actionsoft.exception.AWSException;
|
||||
import com.actionsoft.exception.BPMNError;
|
||||
import com.actionsoft.sdk.local.SDK;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
@ -128,7 +131,8 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
insertPerformanceIndicatorLibrary(boN.get("PUBLISHFILEID").toString(),param.getUserContext(),bo.get("WSID").toString(),boN.getString("PUBLISH_NUMBER"));
|
||||
|
||||
|
||||
|
||||
//回填绩效编号
|
||||
//createPerformanceNumber(boN.get("PUBLISHFILEID").toString(),param.getUserContext(),bo.get("WSID").toString(),boN.getString("PUBLISH_NUMBER"));
|
||||
|
||||
|
||||
}
|
||||
@ -531,23 +535,30 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
*/
|
||||
public void updateProcessNumber(String publishFileId,UserContext uc,String wsId,String processNumber){
|
||||
|
||||
try {
|
||||
//获取关联绩效模型数据
|
||||
List performanceList=new ArrayList();
|
||||
performanceList.add(0,"control.kpi");
|
||||
performanceList.add(1,publishFileId);
|
||||
|
||||
RowMap performrowMap=DBSql.getMap("SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE EXT2=?",performanceList.toString());
|
||||
|
||||
|
||||
|
||||
if(performrowMap!=null ){
|
||||
|
||||
PALRepositoryModel parentModel = PALRepositoryCache.getCache().get(performrowMap.getString("ID"));
|
||||
|
||||
String id=performrowMap.getString("ID");;
|
||||
|
||||
|
||||
|
||||
Map<String, Map<String, JSONObject>> methodAttrsMap = new HashMap<>();// 属性存储
|
||||
|
||||
Map<String, String> methodValueAttrsMap = new HashMap<>();// 属性存储
|
||||
|
||||
//查询对应绩效模型中数据模型进行填充数据
|
||||
BaseModel defineModel = CoeDesignerAPIManager.getInstance().getDefinition(performrowMap.getString("ID"), 0);
|
||||
BaseModel defineModel = CoeDesignerAPIManager.getInstance().getDefinition(id, 0);
|
||||
|
||||
CoeProcessLevelWeb coeProcessLevelWeb=new CoeProcessLevelWeb(uc);
|
||||
|
||||
@ -591,6 +602,10 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
CoeDesignerAPIManager.getInstance().storeDefinition(defineModel);// dao操作
|
||||
|
||||
}
|
||||
} catch (AWSDataAccessException e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -599,24 +614,23 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
* 发布流程结束查询关联绩效模型数据,插入绩效指标库中
|
||||
* @return
|
||||
*/
|
||||
public String insertPerformanceIndicatorLibrary(String publishFileId,UserContext uc,String wsId,String processNumber){
|
||||
public void insertPerformanceIndicatorLibrary(String publishFileId,UserContext uc,String wsId,String processNumber){
|
||||
|
||||
//获取关联绩效模型数据
|
||||
try {
|
||||
List performanceList=new ArrayList();
|
||||
performanceList.add(0,"control.kpi");
|
||||
performanceList.add(1,publishFileId);
|
||||
|
||||
RowMap performrowMap=DBSql.getMap("SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE EXT2=?",performanceList.toString());
|
||||
|
||||
List l1l3performanceList=new ArrayList();
|
||||
l1l3performanceList.add(0,"control.ma");
|
||||
l1l3performanceList.add(1,publishFileId);
|
||||
|
||||
RowMap l1l3performrowMap=DBSql.getMap("SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE EXT2=?",l1l3performanceList.toString());
|
||||
|
||||
if(performrowMap!=null || l1l3performrowMap!=null){
|
||||
if(performrowMap!=null ){
|
||||
|
||||
PALRepositoryModel parentModel = PALRepositoryCache.getCache().get(performrowMap.getString("ID"));
|
||||
String id = performrowMap.getString("ID");
|
||||
|
||||
PALRepositoryModel parentModel = PALRepositoryCache.getCache().get(id);
|
||||
|
||||
|
||||
Map<String, Map<String, JSONObject>> methodAttrsMap = new HashMap<>();// 属性存储
|
||||
@ -624,7 +638,7 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
Map<String, String> methodValueAttrsMap = new HashMap<>();// 属性存储
|
||||
|
||||
//查询对应绩效模型中数据模型进行填充数据
|
||||
BaseModel defineModel = CoeDesignerAPIManager.getInstance().getDefinition(performrowMap.getString("ID"), 0);
|
||||
BaseModel defineModel = CoeDesignerAPIManager.getInstance().getDefinition(id, 0);
|
||||
|
||||
CoeProcessLevelWeb coeProcessLevelWeb=new CoeProcessLevelWeb(uc);
|
||||
|
||||
@ -735,12 +749,71 @@ public class PublishExecuteListenerInterfaceImpl extends ExecuteListener impleme
|
||||
}
|
||||
|
||||
}
|
||||
} catch (AWSDataAccessException e) {
|
||||
e.printStackTrace();
|
||||
} catch (AWSAPIException e) {
|
||||
e.printStackTrace();
|
||||
} catch (BPMNError bpmnError) {
|
||||
bpmnError.printStackTrace();
|
||||
} finally {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 生成MA,MP对应编号
|
||||
* 生成规则: MP(流程编号是:08.01.05.05/P05V1.0-YLYYYY,对应的流程绩效编号MP-08.01.05.05-YLYYYY.AA(AA=1~99顺序排号)对流程编号,去除"/P05V1.0)
|
||||
* MA: MA类指标编号半手动编号:等于MA.XX.XX.XX.XX.AA,其中XX.XX.XX.XX.手动编号,最后两位AA系统提供顺序(MA下排序)
|
||||
*/
|
||||
public void createPerformanceNumber(String publishFileId,UserContext uc,String wsId,String processNumber){
|
||||
|
||||
//获取流程编号
|
||||
if(UtilString.isNotEmpty(processNumber)){
|
||||
List performanceList=new ArrayList();
|
||||
performanceList.add(0,"control.kpi");
|
||||
performanceList.add(1,publishFileId);
|
||||
|
||||
RowMap performrowMap=DBSql.getMap("SELECT ID FROM APP_ACT_COE_PAL_REPOSITORY WHERE EXT2=?",performanceList.toString());
|
||||
|
||||
|
||||
|
||||
|
||||
//MP(流程编号是:08.01.05.05/P05V1.0-YLYYYY,对应的流程绩效编号MP-08.01.05.05-YLYYYY.AA(AA=1~99顺序排号)对流程编号,去除"/P05V1.0)
|
||||
if(performrowMap!=null){
|
||||
|
||||
|
||||
String before=processNumber.substring(0,processNumber.indexOf("/"));
|
||||
String after=processNumber.substring(processNumber.indexOf("-"),processNumber.length());
|
||||
|
||||
//获取当前MP绩效最新排序数值
|
||||
DBSql.getMap("");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
//判断模型方法是MA/MP
|
||||
|
||||
|
||||
//处理绩效编号
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user