|
|
|
@ -254,14 +254,14 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* create process definition |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param name process definition name |
|
|
|
|
* @param description description |
|
|
|
|
* @param globalParams global params |
|
|
|
|
* @param locations locations for nodes |
|
|
|
|
* @param timeout timeout |
|
|
|
|
* @param taskRelationJson relation json for nodes |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param name process definition name |
|
|
|
|
* @param description description |
|
|
|
|
* @param globalParams global params |
|
|
|
|
* @param locations locations for nodes |
|
|
|
|
* @param timeout timeout |
|
|
|
|
* @param taskRelationJson relation json for nodes |
|
|
|
|
* @param taskDefinitionJson taskDefinitionJson |
|
|
|
|
* @return create result code |
|
|
|
|
*/ |
|
|
|
@ -342,7 +342,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* create single process definition |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param workflowCreateRequest the new workflow object will be created |
|
|
|
|
* @return New ProcessDefinition object created just now |
|
|
|
|
*/ |
|
|
|
@ -493,7 +493,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* query process definition list |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @return definition list |
|
|
|
|
*/ |
|
|
|
@ -516,7 +516,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* query process definition simple list |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @return definition simple list |
|
|
|
|
*/ |
|
|
|
@ -547,12 +547,12 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* query process definition list paging |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param searchVal search value |
|
|
|
|
* @param userId user id |
|
|
|
|
* @param pageNo page number |
|
|
|
|
* @param pageSize page size |
|
|
|
|
* @param searchVal search value |
|
|
|
|
* @param userId user id |
|
|
|
|
* @param pageNo page number |
|
|
|
|
* @param pageSize page size |
|
|
|
|
* @return process definition page |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -602,7 +602,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* Filter resource process definitions |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param workflowFilterRequest workflow filter requests |
|
|
|
|
* @return List process definition |
|
|
|
|
*/ |
|
|
|
@ -642,9 +642,9 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* query detail of process definition |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @return process definition detail |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -673,7 +673,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
* query detail of process definition |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @return process definition detail |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -734,17 +734,17 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* update process definition |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param name process definition name |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param description description |
|
|
|
|
* @param globalParams global params |
|
|
|
|
* @param locations locations for nodes |
|
|
|
|
* @param timeout timeout |
|
|
|
|
* @param taskRelationJson relation json for nodes |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param name process definition name |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param description description |
|
|
|
|
* @param globalParams global params |
|
|
|
|
* @param locations locations for nodes |
|
|
|
|
* @param timeout timeout |
|
|
|
|
* @param taskRelationJson relation json for nodes |
|
|
|
|
* @param taskDefinitionJson taskDefinitionJson |
|
|
|
|
* @param otherParamsJson otherParamsJson handle other params |
|
|
|
|
* @param otherParamsJson otherParamsJson handle other params |
|
|
|
|
* @return update result code |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -811,11 +811,11 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Task want to delete whether used in other task, should throw exception when have be used. |
|
|
|
|
* <p> |
|
|
|
|
* |
|
|
|
|
* This function avoid delete task already dependencies by other tasks by accident. |
|
|
|
|
* |
|
|
|
|
* @param processDefinition ProcessDefinition you change task definition and task relation |
|
|
|
|
* @param taskRelationList All the latest task relation list from process definition |
|
|
|
|
* @param taskRelationList All the latest task relation list from process definition |
|
|
|
|
*/ |
|
|
|
|
private void taskUsedInOtherTaskValid(ProcessDefinition processDefinition, |
|
|
|
|
List<ProcessTaskRelationLog> taskRelationList) { |
|
|
|
@ -923,9 +923,9 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* verify process definition name unique |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param name name |
|
|
|
|
* @param name name |
|
|
|
|
* @return true if process definition name not exists, otherwise false |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -995,7 +995,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Process definition want to delete whether used in other task, should throw exception when have be used. |
|
|
|
|
* <p> |
|
|
|
|
* |
|
|
|
|
* This function avoid delete process definition already dependencies by other tasks by accident. |
|
|
|
|
* |
|
|
|
|
* @param processDefinition ProcessDefinition you change task definition and task relation |
|
|
|
@ -1076,9 +1076,9 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* release process definition: online / offline |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param releaseState release state |
|
|
|
|
* @return release result code |
|
|
|
|
*/ |
|
|
|
@ -1243,9 +1243,9 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* import process definition |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param file process metadata json file |
|
|
|
|
* @param file process metadata json file |
|
|
|
|
* @return import process |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -1717,9 +1717,9 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* get task node details based on process definition |
|
|
|
|
* |
|
|
|
|
* @param loginUser loginUser |
|
|
|
|
* @param loginUser loginUser |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @return task node list |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -1746,9 +1746,9 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* get task node details map based on process definition |
|
|
|
|
* |
|
|
|
|
* @param loginUser loginUser |
|
|
|
|
* @param loginUser loginUser |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param codes define codes |
|
|
|
|
* @param codes define codes |
|
|
|
|
* @return task node list |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -1799,7 +1799,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* query process definition all by project code |
|
|
|
|
* |
|
|
|
|
* @param loginUser loginUser |
|
|
|
|
* @param loginUser loginUser |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @return process definitions in the project |
|
|
|
|
*/ |
|
|
|
@ -1839,7 +1839,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* query process definition list by process definition code |
|
|
|
|
* |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param processDefinitionCode process definition code |
|
|
|
|
* @return task definition list in the process definition |
|
|
|
|
*/ |
|
|
|
@ -1875,8 +1875,8 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
* Encapsulates the TreeView structure |
|
|
|
|
* |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param limit limit |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param limit limit |
|
|
|
|
* @return tree view json data |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -2038,9 +2038,9 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* batch copy process definition |
|
|
|
|
* |
|
|
|
|
* @param loginUser loginUser |
|
|
|
|
* @param projectCode projectCode |
|
|
|
|
* @param codes processDefinitionCodes |
|
|
|
|
* @param loginUser loginUser |
|
|
|
|
* @param projectCode projectCode |
|
|
|
|
* @param codes processDefinitionCodes |
|
|
|
|
* @param targetProjectCode targetProjectCode |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -2062,10 +2062,9 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* batch move process definition |
|
|
|
|
* Will be deleted |
|
|
|
|
* |
|
|
|
|
* @param loginUser loginUser |
|
|
|
|
* @param projectCode projectCode |
|
|
|
|
* @param codes processDefinitionCodes |
|
|
|
|
* @param loginUser loginUser |
|
|
|
|
* @param projectCode projectCode |
|
|
|
|
* @param codes processDefinitionCodes |
|
|
|
|
* @param targetProjectCode targetProjectCode |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -2239,9 +2238,8 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get new Task name or Process name when copy or import operate |
|
|
|
|
* |
|
|
|
|
* @param originalName Task or Process original name |
|
|
|
|
* @param suffix "_copy_" or "_import_" |
|
|
|
|
* @param suffix "_copy_" or "_import_" |
|
|
|
|
* @return new name |
|
|
|
|
*/ |
|
|
|
|
public String getNewName(String originalName, String suffix) { |
|
|
|
@ -2263,10 +2261,10 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* switch the defined process definition version |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param version the version user want to switch |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param version the version user want to switch |
|
|
|
|
* @return switch process definition version result code |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -2317,11 +2315,11 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* check batch operate result |
|
|
|
|
* |
|
|
|
|
* @param srcProjectCode srcProjectCode |
|
|
|
|
* @param srcProjectCode srcProjectCode |
|
|
|
|
* @param targetProjectCode targetProjectCode |
|
|
|
|
* @param result result |
|
|
|
|
* @param result result |
|
|
|
|
* @param failedProcessList failedProcessList |
|
|
|
|
* @param isCopy isCopy |
|
|
|
|
* @param isCopy isCopy |
|
|
|
|
*/ |
|
|
|
|
private void checkBatchOperateResult(long srcProjectCode, long targetProjectCode, |
|
|
|
|
Map<String, Object> result, List<String> failedProcessList, boolean isCopy) { |
|
|
|
@ -2348,11 +2346,11 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* query the pagination versions info by one certain process definition code |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user info to check auth |
|
|
|
|
* @param loginUser login user info to check auth |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param pageNo page number |
|
|
|
|
* @param pageSize page size |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param pageNo page number |
|
|
|
|
* @param pageSize page size |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @return the pagination process definition versions info of the certain process definition |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -2384,10 +2382,10 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* delete one certain process definition by version number and process definition code |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user info to check auth |
|
|
|
|
* @param loginUser login user info to check auth |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param version version number |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param version version number |
|
|
|
|
* @return delete result code |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -2566,16 +2564,16 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* update process definition basic info |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param name process definition name |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param description description |
|
|
|
|
* @param globalParams globalParams |
|
|
|
|
* @param timeout timeout |
|
|
|
|
* @param scheduleJson scheduleJson |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param name process definition name |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @param description description |
|
|
|
|
* @param globalParams globalParams |
|
|
|
|
* @param timeout timeout |
|
|
|
|
* @param scheduleJson scheduleJson |
|
|
|
|
* @param otherParamsJson otherParamsJson handle other params |
|
|
|
|
* @param executionType executionType |
|
|
|
|
* @param executionType executionType |
|
|
|
|
* @return update result code |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -2681,9 +2679,9 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
/** |
|
|
|
|
* update single resource workflow |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param workflowCode workflow resource code want to update |
|
|
|
|
* @param workflowUpdateRequest workflow update resource object |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param workflowCode workflow resource code want to update |
|
|
|
|
* @param workflowUpdateRequest workflow update resource object |
|
|
|
|
* @return Process definition |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
@ -2927,7 +2925,6 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* save other relation |
|
|
|
|
* |
|
|
|
|
* @param loginUser |
|
|
|
|
* @param processDefinition |
|
|
|
|
* @param result |
|
|
|
@ -2941,7 +2938,6 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* get Json String |
|
|
|
|
* |
|
|
|
|
* @param loginUser |
|
|
|
|
* @param processDefinition |
|
|
|
|
* @return Json String |
|
|
|
@ -2953,8 +2949,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* view process variables |
|
|
|
|
* |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param loginUser login user |
|
|
|
|
* @param projectCode project code |
|
|
|
|
* @param code process definition code |
|
|
|
|
* @return variables data |
|
|
|
@ -3037,7 +3032,6 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* delete other relation |
|
|
|
|
* |
|
|
|
|
* @param project |
|
|
|
|
* @param result |
|
|
|
|
* @param processDefinition |
|
|
|
|