|
|
|
@ -208,7 +208,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
* @return create result code |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
|
@Transactional |
|
|
|
|
public Map<String, Object> createProcessDefinition(User loginUser, |
|
|
|
|
long projectCode, |
|
|
|
|
String name, |
|
|
|
@ -532,7 +532,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
* @return update result code |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
|
@Transactional |
|
|
|
|
public Map<String, Object> updateProcessDefinition(User loginUser, |
|
|
|
|
long projectCode, |
|
|
|
|
String name, |
|
|
|
@ -689,7 +689,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
* @return delete result code |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
|
@Transactional |
|
|
|
|
public Map<String, Object> deleteProcessDefinitionByCode(User loginUser, long projectCode, long code) { |
|
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
|
//check user access for project
|
|
|
|
@ -760,7 +760,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
* @return release result code |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
|
@Transactional |
|
|
|
|
public Map<String, Object> releaseProcessDefinition(User loginUser, long projectCode, long code, ReleaseState releaseState) { |
|
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
|
//check user access for project
|
|
|
|
@ -900,7 +900,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
* @return import process |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
|
@Transactional |
|
|
|
|
public Map<String, Object> importProcessDefinition(User loginUser, long projectCode, MultipartFile file) { |
|
|
|
|
Map<String, Object> result = new HashMap<>(); |
|
|
|
|
String dagDataScheduleJson = FileUtils.file2String(file); |
|
|
|
@ -919,7 +919,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
|
@Transactional |
|
|
|
|
public Map<String, Object> importSqlProcessDefinition(User loginUser, long projectCode, MultipartFile file) { |
|
|
|
|
Map<String, Object> result = new HashMap<>(); |
|
|
|
|
String processDefinitionName = file.getOriginalFilename() == null ? file.getName() : file.getOriginalFilename(); |
|
|
|
@ -1653,7 +1653,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
* @param targetProjectCode targetProjectCode |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
|
@Transactional |
|
|
|
|
public Map<String, Object> batchMoveProcessDefinition(User loginUser, |
|
|
|
|
long projectCode, |
|
|
|
|
String codes, |
|
|
|
@ -1795,7 +1795,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
* @return switch process definition version result code |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
|
@Transactional |
|
|
|
|
public Map<String, Object> switchProcessDefinitionVersion(User loginUser, long projectCode, long code, int version) { |
|
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
|
//check user access for project
|
|
|
|
@ -1890,7 +1890,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
* @return delete result code |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
|
@Transactional |
|
|
|
|
public Map<String, Object> deleteProcessDefinitionVersion(User loginUser, long projectCode, long code, int version) { |
|
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
|
//check user access for project
|
|
|
|
@ -1932,7 +1932,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
* @return process definition code |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
|
@Transactional |
|
|
|
|
public Map<String, Object> createEmptyProcessDefinition(User loginUser, |
|
|
|
|
long projectCode, |
|
|
|
|
String name, |
|
|
|
@ -2058,7 +2058,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
* @return update result code |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
|
@Transactional |
|
|
|
|
public Map<String, Object> updateProcessDefinitionBasicInfo(User loginUser, |
|
|
|
|
long projectCode, |
|
|
|
|
String name, |
|
|
|
@ -2173,7 +2173,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
* @param releaseState releaseState |
|
|
|
|
* @return update result code |
|
|
|
|
*/ |
|
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
|
@Transactional |
|
|
|
|
@Override |
|
|
|
|
public Map<String, Object> releaseWorkflowAndSchedule(User loginUser, long projectCode, long code, ReleaseState releaseState) { |
|
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
|