|
|
@ -220,7 +220,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
* @return create result code |
|
|
|
* @return create result code |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
@Transactional |
|
|
|
public Map<String, Object> createProcessDefinition(User loginUser, |
|
|
|
public Map<String, Object> createProcessDefinition(User loginUser, |
|
|
|
long projectCode, |
|
|
|
long projectCode, |
|
|
|
String name, |
|
|
|
String name, |
|
|
@ -547,7 +547,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
* @return update result code |
|
|
|
* @return update result code |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
@Transactional |
|
|
|
public Map<String, Object> updateProcessDefinition(User loginUser, |
|
|
|
public Map<String, Object> updateProcessDefinition(User loginUser, |
|
|
|
long projectCode, |
|
|
|
long projectCode, |
|
|
|
String name, |
|
|
|
String name, |
|
|
@ -707,7 +707,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
* @return delete result code |
|
|
|
* @return delete result code |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
@Transactional |
|
|
|
public Map<String, Object> deleteProcessDefinitionByCode(User loginUser, long projectCode, long code) { |
|
|
|
public Map<String, Object> deleteProcessDefinitionByCode(User loginUser, long projectCode, long code) { |
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
//check user access for project
|
|
|
|
//check user access for project
|
|
|
@ -778,7 +778,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
* @return release result code |
|
|
|
* @return release result code |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
@Transactional |
|
|
|
public Map<String, Object> releaseProcessDefinition(User loginUser, long projectCode, long code, ReleaseState releaseState) { |
|
|
|
public Map<String, Object> releaseProcessDefinition(User loginUser, long projectCode, long code, ReleaseState releaseState) { |
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
//check user access for project
|
|
|
|
//check user access for project
|
|
|
@ -918,7 +918,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
* @return import process |
|
|
|
* @return import process |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
@Transactional |
|
|
|
public Map<String, Object> importProcessDefinition(User loginUser, long projectCode, MultipartFile file) { |
|
|
|
public Map<String, Object> importProcessDefinition(User loginUser, long projectCode, MultipartFile file) { |
|
|
|
Map<String, Object> result = new HashMap<>(); |
|
|
|
Map<String, Object> result = new HashMap<>(); |
|
|
|
String dagDataScheduleJson = FileUtils.file2String(file); |
|
|
|
String dagDataScheduleJson = FileUtils.file2String(file); |
|
|
@ -942,7 +942,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
@Transactional |
|
|
|
public Map<String, Object> importSqlProcessDefinition(User loginUser, long projectCode, MultipartFile file) { |
|
|
|
public Map<String, Object> importSqlProcessDefinition(User loginUser, long projectCode, MultipartFile file) { |
|
|
|
Map<String, Object> result = new HashMap<>(); |
|
|
|
Map<String, Object> result = new HashMap<>(); |
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
@ -1687,7 +1687,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
* @param targetProjectCode targetProjectCode |
|
|
|
* @param targetProjectCode targetProjectCode |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
@Transactional |
|
|
|
public Map<String, Object> batchMoveProcessDefinition(User loginUser, |
|
|
|
public Map<String, Object> batchMoveProcessDefinition(User loginUser, |
|
|
|
long projectCode, |
|
|
|
long projectCode, |
|
|
|
String codes, |
|
|
|
String codes, |
|
|
@ -1831,7 +1831,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
* @return switch process definition version result code |
|
|
|
* @return switch process definition version result code |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
@Transactional |
|
|
|
public Map<String, Object> switchProcessDefinitionVersion(User loginUser, long projectCode, long code, int version) { |
|
|
|
public Map<String, Object> switchProcessDefinitionVersion(User loginUser, long projectCode, long code, int version) { |
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
//check user access for project
|
|
|
|
//check user access for project
|
|
|
@ -1926,7 +1926,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
* @return delete result code |
|
|
|
* @return delete result code |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
@Transactional |
|
|
|
public Map<String, Object> deleteProcessDefinitionVersion(User loginUser, long projectCode, long code, int version) { |
|
|
|
public Map<String, Object> deleteProcessDefinitionVersion(User loginUser, long projectCode, long code, int version) { |
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
//check user access for project
|
|
|
|
//check user access for project
|
|
|
@ -1969,7 +1969,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
* @return process definition code |
|
|
|
* @return process definition code |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
@Transactional |
|
|
|
public Map<String, Object> createEmptyProcessDefinition(User loginUser, |
|
|
|
public Map<String, Object> createEmptyProcessDefinition(User loginUser, |
|
|
|
long projectCode, |
|
|
|
long projectCode, |
|
|
|
String name, |
|
|
|
String name, |
|
|
@ -2096,7 +2096,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
* @return update result code |
|
|
|
* @return update result code |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
@Transactional |
|
|
|
public Map<String, Object> updateProcessDefinitionBasicInfo(User loginUser, |
|
|
|
public Map<String, Object> updateProcessDefinitionBasicInfo(User loginUser, |
|
|
|
long projectCode, |
|
|
|
long projectCode, |
|
|
|
String name, |
|
|
|
String name, |
|
|
@ -2212,7 +2212,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro |
|
|
|
* @param releaseState releaseState |
|
|
|
* @param releaseState releaseState |
|
|
|
* @return update result code |
|
|
|
* @return update result code |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Transactional(rollbackFor = RuntimeException.class) |
|
|
|
@Transactional |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, Object> releaseWorkflowAndSchedule(User loginUser, long projectCode, long code, ReleaseState releaseState) { |
|
|
|
public Map<String, Object> releaseWorkflowAndSchedule(User loginUser, long projectCode, long code, ReleaseState releaseState) { |
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|
Project project = projectMapper.queryByCode(projectCode); |
|
|
|