1.修改流程发布名称。
This commit is contained in:
parent
87a5655055
commit
dd74174bc1
Binary file not shown.
@ -612,6 +612,10 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
* @return
|
||||
*/
|
||||
public String savePublishInstance(String title, String teamId, String teamName, String wsId) {
|
||||
Date date=new Date();//此时date为当前的时间
|
||||
SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置当前时间的格式,为年-月-日
|
||||
System.out.println(dateFormat.format(date));
|
||||
String titled ="流程发布-"+ _uc.getUserName()+"-"+dateFormat.format(date);
|
||||
AppAPI appApi = SDK.getAppAPI();
|
||||
String processDefId = "";
|
||||
String selectionmode = appApi.getProperty(PublisherConstant.PUBLISH, "selectionmode");
|
||||
@ -625,7 +629,7 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
// 创建流程实例
|
||||
ProcessInstance processInstModel = null;
|
||||
try {
|
||||
processInstModel = SDK.getProcessAPI().createProcessInstance(processDefId, _uc.getUID(), title);
|
||||
processInstModel = SDK.getProcessAPI().createProcessInstance(processDefId, _uc.getUID(), titled);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return ResponseObject.newErrResponse(e.getMessage()).toString();
|
||||
@ -2262,17 +2266,27 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
*/
|
||||
private void validPublisData(String publishNewFileId, String publishChangeFileId, String publishStopFileId, String processInstId, String wsId, JSONObject obj) {
|
||||
Set<String> set = new HashSet<>();
|
||||
if (!UtilString.isEmpty(publishNewFileId)) set.add(publishNewFileId);
|
||||
if (!UtilString.isEmpty(publishChangeFileId)) set.add(publishChangeFileId);
|
||||
if (!UtilString.isEmpty(publishStopFileId)) set.add(publishStopFileId);
|
||||
if (set.isEmpty()) return;
|
||||
if (!UtilString.isEmpty(publishNewFileId)) {
|
||||
set.add(publishNewFileId);
|
||||
}
|
||||
if (!UtilString.isEmpty(publishChangeFileId)) {
|
||||
set.add(publishChangeFileId);
|
||||
}
|
||||
if (!UtilString.isEmpty(publishStopFileId)) {
|
||||
set.add(publishStopFileId);
|
||||
}
|
||||
if (set.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
List<BO> list = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH").addQuery("ISEND =", 0).list();
|
||||
if (list != null && list.size() > 0) {
|
||||
String type = null;
|
||||
PALRepositoryModel m = null;
|
||||
end:
|
||||
for (BO bo : list) {
|
||||
if (bo.getBindId().equals(processInstId)) continue;
|
||||
if (bo.getBindId().equals(processInstId)) {
|
||||
continue;
|
||||
}
|
||||
// 获取三个子表
|
||||
{// 发布表
|
||||
BO newBo = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N").detailByBindId(bo.getBindId());
|
||||
@ -2818,7 +2832,9 @@ public class ProcessPublishWeb extends ActionWeb {
|
||||
List<BO> list = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH").addQuery("ISEND =", 0).list();
|
||||
if (list != null && list.size() > 0) {
|
||||
for (BO bo : list) {
|
||||
if (bo.getBindId().equals(processInstId)) continue;
|
||||
if (bo.getBindId().equals(processInstId)) {
|
||||
continue;
|
||||
}
|
||||
// 获取三个子表
|
||||
{// 发布表
|
||||
BO newBo = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N").detailByBindId(bo.getBindId());
|
||||
|
||||
@ -9,8 +9,12 @@ package com.actionsoft.apps.coe.pal.publisher.constant;
|
||||
public interface PublisherConstant {
|
||||
public static final String PUBLISH = "com.actionsoft.apps.coe.pal.publisher"; //流程发布AppId
|
||||
|
||||
public static final String PROCESSGROUPID = "obj_893ec85d8219468bb6df6a19fab4f7c9"; //发布流程流程组Id
|
||||
//public static final String PROCESSGROUPID = "obj_f2903c7c6a2d405a981a87e115d4261e"; //发布流程流程组Id
|
||||
//public static final String PROCESSID = "obj_d2b56ab6bd96477b9b14fc355f3c5ee9";
|
||||
//public static final String PROCESSID = "obj_fb1c7a54b98b412187388c8bab407362";
|
||||
|
||||
|
||||
public static final String PROCESSGROUPID = "obj_893ec85d8219468bb6df6a19fab4f7c9"; //发布流程流程组Id
|
||||
public static final String PROCESSID = "obj_fb1c7a54b98b412187388c8bab407362";
|
||||
|
||||
public static final String BOTABLENAME = "BO_ACT_COE_PUBLISH"; //发布流程BO表主表表名
|
||||
|
||||
Loading…
Reference in New Issue
Block a user