MCI 성공 처리
This commit is contained in:
+8
-2
@@ -529,7 +529,7 @@ public class LayoutSyncController extends OnlBaseAnnotationController implements
|
||||
if (!"EAI".equalsIgnoreCase(useSystem) && !"FEP".equalsIgnoreCase(useSystem)) {
|
||||
String errorMessage = "사용 시스템(" + useSystem + ")인 전문레이아웃은 EAI, FEP로 배포 안됨.";
|
||||
logger.error(errorMessage);
|
||||
throw new Exception(errorMessage);
|
||||
throw new UseSystemException(errorMessage);
|
||||
}
|
||||
|
||||
if( "ASCII".equals(format.getAttributeValue("msgType")) ) {
|
||||
@@ -604,9 +604,15 @@ public class LayoutSyncController extends OnlBaseAnnotationController implements
|
||||
logger.error("",e.getStackTrace()[0]);
|
||||
try {
|
||||
if( results != null ) {
|
||||
results.getChild("Result").setText("False");
|
||||
if (e instanceof UseSystemException) {
|
||||
results.getChild("Result").setText("True");
|
||||
} else {
|
||||
results.getChild("Result").setText("False");
|
||||
}
|
||||
results.getChild("ResultMessage").setText( e.getMessage() );
|
||||
|
||||
|
||||
|
||||
resultS = StringUtils.toXMLString(rDoc, true);
|
||||
}
|
||||
if( param.get("logPrcssSeqno") == null ) {
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.eactive.eai.rms.onl.manage.rule.layoutsync;
|
||||
|
||||
import com.eactive.eai.rms.onl.common.exception.EMSRuntimeException;
|
||||
|
||||
public class UseSystemException extends EMSRuntimeException {
|
||||
|
||||
public UseSystemException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user