|
|
@ -900,9 +900,9 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
List<ProcessTaskRelationLog> processTaskRelationList = new ArrayList<>(); |
|
|
|
List<ProcessTaskRelationLog> processTaskRelationList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
// for Zip Bomb Attack
|
|
|
|
// for Zip Bomb Attack
|
|
|
|
int THRESHOLD_ENTRIES = 10000; |
|
|
|
final int THRESHOLD_ENTRIES = 10000; |
|
|
|
int THRESHOLD_SIZE = 1000000000; // 1 GB
|
|
|
|
final int THRESHOLD_SIZE = 1000000000; // 1 GB
|
|
|
|
double THRESHOLD_RATIO = 10; |
|
|
|
final double THRESHOLD_RATIO = 10; |
|
|
|
int totalEntryArchive = 0; |
|
|
|
int totalEntryArchive = 0; |
|
|
|
int totalSizeEntry = 0; |
|
|
|
int totalSizeEntry = 0; |
|
|
|
// In most cases, there will be only one data source
|
|
|
|
// In most cases, there will be only one data source
|
|
|
@ -1166,6 +1166,8 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
} |
|
|
|
} |
|
|
|
processDefinition.setLocations(newArrayNode.toString()); |
|
|
|
processDefinition.setLocations(newArrayNode.toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
processDefinition.setCreateTime(new Date()); |
|
|
|
|
|
|
|
processDefinition.setUpdateTime(new Date()); |
|
|
|
Map<String, Object> createDagResult = createDagDefine(loginUser, taskRelationLogList, processDefinition, Lists.newArrayList()); |
|
|
|
Map<String, Object> createDagResult = createDagDefine(loginUser, taskRelationLogList, processDefinition, Lists.newArrayList()); |
|
|
|
if (Status.SUCCESS.equals(createDagResult.get(Constants.STATUS))) { |
|
|
|
if (Status.SUCCESS.equals(createDagResult.get(Constants.STATUS))) { |
|
|
|
putMsg(createDagResult, Status.SUCCESS); |
|
|
|
putMsg(createDagResult, Status.SUCCESS); |
|
|
|