建立导入成功清单日志文件
This commit is contained in:
parent
faecdae62b
commit
a7a70d6ed7
Binary file not shown.
@ -14,6 +14,8 @@ public class ArisConstant {
|
|||||||
public final static String IMPORT_LOG_FILE_FULL = "fullImport.log";// 详细日志,包括全量信息内容
|
public final static String IMPORT_LOG_FILE_FULL = "fullImport.log";// 详细日志,包括全量信息内容
|
||||||
public final static String IMPORT_LOG_FILE_WARN = "warnErrImport.log";// 错误&警告日志,单独记录错误&警告日志,同时详细日志中也有记录
|
public final static String IMPORT_LOG_FILE_WARN = "warnErrImport.log";// 错误&警告日志,单独记录错误&警告日志,同时详细日志中也有记录
|
||||||
|
|
||||||
|
public final static String IMPORT_LOG_FILE_SUCCESS = "successImport.log";// 导入成功日志单独记录,只记录pal流程名称与对应的Aris地址,客户需要
|
||||||
|
|
||||||
|
|
||||||
public final static String ARIS_ROOT_PATH = "\\伊利集团业务流程管理平台";
|
public final static String ARIS_ROOT_PATH = "\\伊利集团业务流程管理平台";
|
||||||
|
|
||||||
|
|||||||
@ -41,6 +41,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
@ -57,6 +58,7 @@ public class ArisXmlImportRun {
|
|||||||
private File simpleLogFile;
|
private File simpleLogFile;
|
||||||
private File fullLogFile;
|
private File fullLogFile;
|
||||||
private File warnLogFile;
|
private File warnLogFile;
|
||||||
|
private File successLogFile;// 客户特殊需要,记录成功日志
|
||||||
private String filePath;
|
private String filePath;
|
||||||
private String fileName;
|
private String fileName;
|
||||||
private long startTime;
|
private long startTime;
|
||||||
@ -74,6 +76,13 @@ public class ArisXmlImportRun {
|
|||||||
this.filePath = filePath;
|
this.filePath = filePath;
|
||||||
this.fileName = fileName;
|
this.fileName = fileName;
|
||||||
this.startTime = startTime;
|
this.startTime = startTime;
|
||||||
|
// 单独创建一个成功日志
|
||||||
|
successLogFile = new File(fullLogFile.getParentFile().getPath() + File.separator + ArisConstant.IMPORT_LOG_FILE_SUCCESS);
|
||||||
|
try {
|
||||||
|
successLogFile.createNewFile();
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void execute(ArisXmlHandleWeb handleWeb) {
|
public void execute(ArisXmlHandleWeb handleWeb) {
|
||||||
@ -314,6 +323,8 @@ public class ArisXmlImportRun {
|
|||||||
LogUtil.appendLog(Constant.LOG_END + "[执行阶段][保存过程链图形状/连线]", simpleLogFile, fullLogFile);
|
LogUtil.appendLog(Constant.LOG_END + "[执行阶段][保存过程链图形状/连线]", simpleLogFile, fullLogFile);
|
||||||
|
|
||||||
LogUtil.appendLog("\n" + Constant.LOG_END + "导入ARIS流程" + "[" + arisModel.getName() + "]", simpleLogFile, fullLogFile, warnLogFile);
|
LogUtil.appendLog("\n" + Constant.LOG_END + "导入ARIS流程" + "[" + arisModel.getName() + "]", simpleLogFile, fullLogFile, warnLogFile);
|
||||||
|
|
||||||
|
LogUtil.appendLog(Constant.LOG_END + "导入成功的PAL流程" + "[" + palModel.getName() + "],ARIS地址[ " + palArisPropValMap.get(palModel.getId()) + " ]", successLogFile);
|
||||||
}
|
}
|
||||||
endTime = System.currentTimeMillis();
|
endTime = System.currentTimeMillis();
|
||||||
Timestamp endDate = new Timestamp(endTime);
|
Timestamp endDate = new Timestamp(endTime);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user