|
@@ -1,5 +1,6 @@
|
|
package com.miniframe.bisiness.system;
|
|
package com.miniframe.bisiness.system;
|
|
|
|
|
|
|
|
+import java.io.File;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
@@ -144,10 +145,14 @@ public class AFT001Service extends AFT001BaseModel implements ExecProcessFlow {
|
|
String jobPath = XIFileUtils.getRootPathStr()+ MFConstant.separator+solver.getPid();
|
|
String jobPath = XIFileUtils.getRootPathStr()+ MFConstant.separator+solver.getPid();
|
|
String exePath = jobPath+ MFConstant.separator+"fem";
|
|
String exePath = jobPath+ MFConstant.separator+"fem";
|
|
String exeOutPath = exePath+ MFConstant.separator+"data_out";
|
|
String exeOutPath = exePath+ MFConstant.separator+"data_out";
|
|
|
|
+ File file = new File(exeOutPath+MFConstant.separator+"dynamicResponse-transient1.vtk");
|
|
|
|
+ if(!file.exists()){
|
|
|
|
+ throw new BusinessException("EB4000017");
|
|
|
|
+ }
|
|
JSONObject obj = new JSONObject();
|
|
JSONObject obj = new JSONObject();
|
|
obj.put("filePath", exeOutPath);
|
|
obj.put("filePath", exeOutPath);
|
|
- obj.put("fileType", "acsiss");
|
|
|
|
- obj.put("fileName", "dynamicResponse-transient.vtk");
|
|
|
|
|
|
+ obj.put("fileType", "ascii");
|
|
|
|
+ obj.put("fileName", "dynamicResponse-transient1.vtk");
|
|
msg.setParamJson(obj.toString());
|
|
msg.setParamJson(obj.toString());
|
|
}
|
|
}
|
|
}else if(action.equals("ContourDisplay")){
|
|
}else if(action.equals("ContourDisplay")){
|