|
@ -390,13 +390,12 @@ public class FlowManager implements IFlowManage {
|
|
|
}
|
|
|
|
|
|
//新增processor记录
|
|
|
String newRoutePath = flowTemp.getClassPath().replace(".java",".class");//生成后的class应保存的地址
|
|
|
String deName = DES.decrypt(flowTemp.getClassPath(), DES.COMMON_PASSWORD);//吉阿米果的文件名
|
|
|
|
|
|
String enClassName = DES.encrypt(deName.replace(".java", ".class"), DES.COMMON_PASSWORD);//生成机密过的classPath
|
|
|
SystemServiceFlowClass newFlowClass = new SystemServiceFlowClass();
|
|
|
newFlowClass.setPackageName(flowTemp.getPackageName());
|
|
|
newFlowClass.setClassName(flowTemp.getClassName() + newFlow.getCode());
|
|
|
newFlowClass.setClassPath(deName.replace(".java",".class"));
|
|
|
newFlowClass.setClassPath(enClassName);
|
|
|
newFlowClass.setFlowId(newFlow.getId());
|
|
|
newFlowClass.setType(Constants.FLOW_TYPE_ROUTE);
|
|
|
flowClassDao.saveEntity(newFlowClass);
|
|
@ -429,7 +428,6 @@ public class FlowManager implements IFlowManage {
|
|
|
|
|
|
//新增processor记录
|
|
|
for (SystemServiceFlowTemp process : flowTempProces) {
|
|
|
String newProcessPath;
|
|
|
StringBuilder proPath = new StringBuilder();
|
|
|
|
|
|
if (process.getPackageName() != null) {
|
|
@ -440,13 +438,13 @@ public class FlowManager implements IFlowManage {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
newProcessPath = process.getClassPath().replace(".java", ".class");
|
|
|
String deName = DES.decrypt(process.getClassPath(), DES.COMMON_PASSWORD);//吉阿米果的文件名
|
|
|
String enClassName = DES.encrypt(deName.replace(".java", ".class"), DES.COMMON_PASSWORD);//生成机密过的classPath
|
|
|
|
|
|
SystemServiceFlowClass processClass = new SystemServiceFlowClass();
|
|
|
processClass.setPackageName(process.getPackageName());
|
|
|
processClass.setClassName(process.getClassName());
|
|
|
processClass.setClassPath(deName.replace(".java",".class"));
|
|
|
processClass.setClassPath(enClassName);
|
|
|
processClass.setFlowId(newFlow.getId());
|
|
|
processClass.setType(Constants.FLOW_TYPE_PROCESSOR);
|
|
|
processClass.setIsUpdate("1");
|
|
@ -462,9 +460,5 @@ public class FlowManager implements IFlowManage {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
String deName = DES.decrypt("9818f69020f9c6404c55c8e6f24db78acdeae2368f2b917a9189275f1ee01bd0cbc5f0c2528424dd78ab82c362f8ee27e30fe7d3cb9bdb8e", DES.COMMON_PASSWORD);//吉阿米果的文件名
|
|
|
System.out.println(deName);
|
|
|
}
|
|
|
|
|
|
}
|