Browse Source
* upgrade add sub_process * add interface method * add interface method * fix ut3.0.0/version-upgrade
JinYong Li
3 years ago
committed by
GitHub
13 changed files with 975 additions and 1 deletions
@ -0,0 +1,244 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You under the Apache License, Version 2.0 |
||||
* (the "License"); you may not use this file except in compliance with |
||||
* the License. You may obtain a copy of the License at |
||||
* |
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package org.apache.dolphinscheduler.api.controller; |
||||
|
||||
import static org.apache.dolphinscheduler.api.enums.Status.CREATE_PROCESS_TASK_RELATION_ERROR; |
||||
import static org.apache.dolphinscheduler.api.enums.Status.DELETE_TASK_PROCESS_RELATION_ERROR; |
||||
import static org.apache.dolphinscheduler.api.enums.Status.MOVE_PROCESS_TASK_RELATION_ERROR; |
||||
import static org.apache.dolphinscheduler.api.enums.Status.QUERY_TASK_PROCESS_RELATION_ERROR; |
||||
|
||||
import org.apache.dolphinscheduler.api.aspect.AccessLogAnnotation; |
||||
import org.apache.dolphinscheduler.api.exceptions.ApiException; |
||||
import org.apache.dolphinscheduler.api.service.ProcessTaskRelationService; |
||||
import org.apache.dolphinscheduler.api.utils.Result; |
||||
import org.apache.dolphinscheduler.common.Constants; |
||||
import org.apache.dolphinscheduler.dao.entity.User; |
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.http.HttpStatus; |
||||
import org.springframework.web.bind.annotation.DeleteMapping; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.PathVariable; |
||||
import org.springframework.web.bind.annotation.PostMapping; |
||||
import org.springframework.web.bind.annotation.RequestAttribute; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
import org.springframework.web.bind.annotation.ResponseStatus; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
|
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiImplicitParam; |
||||
import io.swagger.annotations.ApiImplicitParams; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import io.swagger.annotations.ApiParam; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
|
||||
/** |
||||
* process task relation controller |
||||
*/ |
||||
@Api(tags = "PROCESS_TASK_RELATION_TAG") |
||||
@RestController |
||||
@RequestMapping("projects/{projectCode}/process-task-relation") |
||||
public class ProcessTaskRelationController extends BaseController { |
||||
|
||||
@Autowired |
||||
private ProcessTaskRelationService processTaskRelationService; |
||||
|
||||
/** |
||||
* create process task relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param processDefinitionCode processDefinitionCode |
||||
* @param preTaskCode preTaskCode |
||||
* @param postTaskCode postTaskCode |
||||
* @return create result code |
||||
*/ |
||||
@ApiOperation(value = "save", notes = "CREATE_PROCESS_TASK_RELATION_NOTES") |
||||
@ApiImplicitParams({ |
||||
@ApiImplicitParam(name = "projectCode", value = "PROJECT_CODE", required = true, type = "Long"), |
||||
@ApiImplicitParam(name = "processDefinitionCode", value = "PROCESS_DEFINITION_CODE", required = true, type = "Long"), |
||||
@ApiImplicitParam(name = "preTaskCode", value = "PRE_TASK_CODE", required = true, type = "Long"), |
||||
@ApiImplicitParam(name = "postTaskCode", value = "POST_TASK_CODE", required = true, type = "Long") |
||||
}) |
||||
@PostMapping() |
||||
@ResponseStatus(HttpStatus.CREATED) |
||||
@ApiException(CREATE_PROCESS_TASK_RELATION_ERROR) |
||||
@AccessLogAnnotation(ignoreRequestArgs = "loginUser") |
||||
public Result createProcessTaskRelation(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, |
||||
@ApiParam(name = "projectCode", value = "PROJECT_CODE", required = true) @PathVariable long projectCode, |
||||
@RequestParam(name = "processDefinitionCode", value = "PROCESS_DEFINITION_CODE", required = true) long processDefinitionCode, |
||||
@RequestParam(name = "preTaskCode", value = "PRE_TASK_CODE", required = true) long preTaskCode, |
||||
@RequestParam(name = "postTaskCode", value = "POST_TASK_CODE", required = true) long postTaskCode) { |
||||
return returnDataList(processTaskRelationService.createProcessTaskRelation(loginUser, projectCode, processDefinitionCode, preTaskCode, postTaskCode)); |
||||
} |
||||
|
||||
/** |
||||
* move task to other processDefinition |
||||
* |
||||
* @param loginUser login user info |
||||
* @param projectCode project code |
||||
* @param processDefinitionCode process definition code |
||||
* @param targetProcessDefinitionCode target process definition code |
||||
* @param taskCode the current task code (the post task code) |
||||
* @return move result code |
||||
*/ |
||||
@ApiOperation(value = "moveRelation", notes = "MOVE_TASK_TO_OTHER_PROCESS_DEFINITION_NOTES") |
||||
@ApiImplicitParams({ |
||||
@ApiImplicitParam(name = "projectCode", value = "PROJECT_CODE", required = true, type = "Long"), |
||||
@ApiImplicitParam(name = "processDefinitionCode", value = "PROCESS_DEFINITION_CODE", required = true, type = "Long"), |
||||
@ApiImplicitParam(name = "targetProcessDefinitionCode", value = "TARGET_PROCESS_DEFINITION_CODE", required = true, type = "Long"), |
||||
@ApiImplicitParam(name = "taskCode", value = "TASK_CODE", required = true, type = "Long") |
||||
}) |
||||
@PostMapping(value = "/move") |
||||
@ResponseStatus(HttpStatus.OK) |
||||
@ApiException(MOVE_PROCESS_TASK_RELATION_ERROR) |
||||
@AccessLogAnnotation(ignoreRequestArgs = "loginUser") |
||||
public Result moveTaskProcessRelation(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, |
||||
@ApiParam(name = "projectCode", value = "PROJECT_CODE", required = true) @PathVariable long projectCode, |
||||
@RequestParam(name = "processDefinitionCode", value = "PROCESS_DEFINITION_CODE", required = true) long processDefinitionCode, |
||||
@RequestParam(name = "targetProcessDefinitionCode", value = "TARGET_PROCESS_DEFINITION_CODE", required = true) long targetProcessDefinitionCode, |
||||
@RequestParam(name = "taskCode", value = "POST_TASK_CODE", required = true) long taskCode) { |
||||
return returnDataList(processTaskRelationService.moveTaskProcessRelation(loginUser, projectCode, processDefinitionCode, |
||||
targetProcessDefinitionCode, taskCode)); |
||||
} |
||||
|
||||
/** |
||||
* delete process task relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param processDefinitionCode process definition code |
||||
* @param taskCode the post task code |
||||
* @return delete result code |
||||
*/ |
||||
@ApiOperation(value = "deleteRelation", notes = "DELETE_PROCESS_TASK_RELATION_NOTES") |
||||
@ApiImplicitParams({ |
||||
@ApiImplicitParam(name = "projectCode", value = "PROJECT_CODE", required = true, type = "Long"), |
||||
@ApiImplicitParam(name = "processDefinitionCode", value = "PROCESS_DEFINITION_CODE", required = true, type = "Long"), |
||||
@ApiImplicitParam(name = "taskCode", value = "TASK_CODE", required = true, type = "Long") |
||||
}) |
||||
@DeleteMapping(value = "/{taskCode}") |
||||
@ResponseStatus(HttpStatus.OK) |
||||
@ApiException(DELETE_TASK_PROCESS_RELATION_ERROR) |
||||
@AccessLogAnnotation(ignoreRequestArgs = "loginUser") |
||||
public Result deleteTaskProcessRelation(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, |
||||
@ApiParam(name = "projectCode", value = "PROJECT_CODE", required = true) @PathVariable long projectCode, |
||||
@RequestParam(name = "processDefinitionCode", value = "PROCESS_DEFINITION_CODE", required = true) long processDefinitionCode, |
||||
@PathVariable("taskCode") long taskCode) { |
||||
return returnDataList(processTaskRelationService.deleteTaskProcessRelation(loginUser, projectCode, processDefinitionCode, taskCode)); |
||||
} |
||||
|
||||
/** |
||||
* delete task upstream relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param preTaskCodes the pre task codes, sep ',' |
||||
* @param taskCode the post task code |
||||
* @return delete result code |
||||
*/ |
||||
@ApiOperation(value = "deleteUpstreamRelation", notes = "DELETE_UPSTREAM_RELATION_NOTES") |
||||
@ApiImplicitParams({ |
||||
@ApiImplicitParam(name = "projectCode", value = "PROJECT_CODE", required = true, type = "Long"), |
||||
@ApiImplicitParam(name = "preTaskCodes", value = "PRE_TASK_CODES", required = true, type = "String", example = "3,4"), |
||||
@ApiImplicitParam(name = "taskCode", value = "TASK_CODE", required = true, type = "Long") |
||||
}) |
||||
@DeleteMapping(value = "/{taskCode}/upstream") |
||||
@ResponseStatus(HttpStatus.OK) |
||||
@ApiException(DELETE_TASK_PROCESS_RELATION_ERROR) |
||||
@AccessLogAnnotation(ignoreRequestArgs = "loginUser") |
||||
public Result deleteUpstreamRelation(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, |
||||
@ApiParam(name = "projectCode", value = "PROJECT_CODE", required = true) @PathVariable long projectCode, |
||||
@RequestParam(name = "preTaskCodes", value = "PRE_TASK_CODES", required = true) String preTaskCodes, |
||||
@PathVariable("taskCode") long taskCode) { |
||||
return returnDataList(processTaskRelationService.deleteUpstreamRelation(loginUser, projectCode, preTaskCodes, taskCode)); |
||||
} |
||||
|
||||
/** |
||||
* delete task downstream relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param postTaskCodes the post task codes, sep ',' |
||||
* @param taskCode the pre task code |
||||
* @return delete result code |
||||
*/ |
||||
@ApiOperation(value = "deleteDownstreamRelation", notes = "DELETE_DOWNSTREAM_RELATION_NOTES") |
||||
@ApiImplicitParams({ |
||||
@ApiImplicitParam(name = "projectCode", value = "PROJECT_CODE", required = true, type = "Long"), |
||||
@ApiImplicitParam(name = "postTaskCodes", value = "POST_TASK_CODES", required = true, type = "String", example = "3,4"), |
||||
@ApiImplicitParam(name = "taskCode", value = "TASK_CODE", required = true, type = "Long") |
||||
}) |
||||
@DeleteMapping(value = "/{taskCode}/downstream") |
||||
@ResponseStatus(HttpStatus.OK) |
||||
@ApiException(DELETE_TASK_PROCESS_RELATION_ERROR) |
||||
@AccessLogAnnotation(ignoreRequestArgs = "loginUser") |
||||
public Result deleteDownstreamRelation(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, |
||||
@ApiParam(name = "projectCode", value = "PROJECT_CODE", required = true) @PathVariable long projectCode, |
||||
@RequestParam(name = "postTaskCodes", value = "POST_TASK_CODES", required = true) String postTaskCodes, |
||||
@PathVariable("taskCode") long taskCode) { |
||||
return returnDataList(processTaskRelationService.deleteDownstreamRelation(loginUser, projectCode, postTaskCodes, taskCode)); |
||||
} |
||||
|
||||
/** |
||||
* query task upstream relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param taskCode current task code (post task code) |
||||
* @return process task relation list |
||||
*/ |
||||
@ApiOperation(value = "queryUpstreamRelation", notes = "QUERY_UPSTREAM_RELATION_NOTES") |
||||
@ApiImplicitParams({ |
||||
@ApiImplicitParam(name = "projectCode", value = "PROJECT_CODE", required = true, type = "Long"), |
||||
@ApiImplicitParam(name = "taskCode", value = "TASK_CODE", required = true, type = "Long") |
||||
}) |
||||
@GetMapping(value = "/{taskCode}/upstream") |
||||
@ResponseStatus(HttpStatus.OK) |
||||
@ApiException(QUERY_TASK_PROCESS_RELATION_ERROR) |
||||
@AccessLogAnnotation(ignoreRequestArgs = "loginUser") |
||||
public Result queryUpstreamRelation(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, |
||||
@ApiParam(name = "projectCode", value = "PROJECT_CODE", required = true) @PathVariable long projectCode, |
||||
@PathVariable("taskCode") long taskCode) { |
||||
return returnDataList(processTaskRelationService.queryUpstreamRelation(loginUser, projectCode, taskCode)); |
||||
} |
||||
|
||||
/** |
||||
* query task downstream relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param taskCode pre task code |
||||
* @return process task relation list |
||||
*/ |
||||
@ApiOperation(value = "queryDownstreamRelation", notes = "QUERY_DOWNSTREAM_RELATION_NOTES") |
||||
@ApiImplicitParams({ |
||||
@ApiImplicitParam(name = "projectCode", value = "PROJECT_CODE", required = true, type = "Long"), |
||||
@ApiImplicitParam(name = "taskCode", value = "TASK_CODE", required = true, type = "Long") |
||||
}) |
||||
@GetMapping(value = "/{taskCode}/downstream") |
||||
@ResponseStatus(HttpStatus.OK) |
||||
@ApiException(QUERY_TASK_PROCESS_RELATION_ERROR) |
||||
@AccessLogAnnotation(ignoreRequestArgs = "loginUser") |
||||
public Result queryDownstreamRelation(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser, |
||||
@ApiParam(name = "projectCode", value = "PROJECT_CODE", required = true) @PathVariable long projectCode, |
||||
@PathVariable("taskCode") long taskCode) { |
||||
return returnDataList(processTaskRelationService.queryDownstreamRelation(loginUser, projectCode, taskCode)); |
||||
} |
||||
} |
@ -0,0 +1,126 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You under the Apache License, Version 2.0 |
||||
* (the "License"); you may not use this file except in compliance with |
||||
* the License. You may obtain a copy of the License at |
||||
* |
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package org.apache.dolphinscheduler.api.service; |
||||
|
||||
import org.apache.dolphinscheduler.dao.entity.User; |
||||
|
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* process task relation service |
||||
*/ |
||||
public interface ProcessTaskRelationService { |
||||
|
||||
/** |
||||
* create process task relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param processDefinitionCode processDefinitionCode |
||||
* @param preTaskCode preTaskCode |
||||
* @param postTaskCode postTaskCode |
||||
* @return create result code |
||||
*/ |
||||
Map<String, Object> createProcessTaskRelation(User loginUser, |
||||
long projectCode, |
||||
long processDefinitionCode, |
||||
long preTaskCode, |
||||
long postTaskCode); |
||||
|
||||
/** |
||||
* move task to other processDefinition |
||||
* |
||||
* @param loginUser login user info |
||||
* @param projectCode project code |
||||
* @param processDefinitionCode process definition code |
||||
* @param targetProcessDefinitionCode target process definition code |
||||
* @param taskCode the current task code (the post task code) |
||||
* @return move result code |
||||
*/ |
||||
Map<String, Object> moveTaskProcessRelation(User loginUser, |
||||
long projectCode, |
||||
long processDefinitionCode, |
||||
long targetProcessDefinitionCode, |
||||
long taskCode); |
||||
|
||||
/** |
||||
* delete process task relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param processDefinitionCode process definition code |
||||
* @param taskCode the post task code |
||||
* @return delete result code |
||||
*/ |
||||
Map<String, Object> deleteTaskProcessRelation(User loginUser, |
||||
long projectCode, |
||||
long processDefinitionCode, |
||||
long taskCode); |
||||
|
||||
/** |
||||
* delete task upstream relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param preTaskCodes the pre task codes, sep ',' |
||||
* @param taskCode the post task code |
||||
* @return delete result code |
||||
*/ |
||||
Map<String, Object> deleteUpstreamRelation(User loginUser, |
||||
long projectCode, |
||||
String preTaskCodes, |
||||
long taskCode); |
||||
|
||||
/** |
||||
* delete task downstream relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param postTaskCodes the post task codes, sep ',' |
||||
* @param taskCode the pre task code |
||||
* @return delete result code |
||||
*/ |
||||
Map<String, Object> deleteDownstreamRelation(User loginUser, |
||||
long projectCode, |
||||
String postTaskCodes, |
||||
long taskCode); |
||||
|
||||
/** |
||||
* query task upstream relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param taskCode current task code (post task code) |
||||
* @return process task relation list |
||||
*/ |
||||
Map<String, Object> queryUpstreamRelation(User loginUser, |
||||
long projectCode, |
||||
long taskCode); |
||||
|
||||
/** |
||||
* query task downstream relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param taskCode pre task code |
||||
* @return process task relation list |
||||
*/ |
||||
Map<String, Object> queryDownstreamRelation(User loginUser, |
||||
long projectCode, |
||||
long taskCode); |
||||
} |
@ -0,0 +1,151 @@
|
||||
/* |
||||
* Licensed to the Apache Software Foundation (ASF) under one or more |
||||
* contributor license agreements. See the NOTICE file distributed with |
||||
* this work for additional information regarding copyright ownership. |
||||
* The ASF licenses this file to You under the Apache License, Version 2.0 |
||||
* (the "License"); you may not use this file except in compliance with |
||||
* the License. You may obtain a copy of the License at |
||||
* |
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package org.apache.dolphinscheduler.api.service.impl; |
||||
|
||||
import org.apache.dolphinscheduler.api.service.ProcessTaskRelationService; |
||||
import org.apache.dolphinscheduler.api.service.ProjectService; |
||||
import org.apache.dolphinscheduler.dao.entity.User; |
||||
import org.apache.dolphinscheduler.dao.mapper.ProcessTaskRelationMapper; |
||||
import org.apache.dolphinscheduler.dao.mapper.ProjectMapper; |
||||
import org.apache.dolphinscheduler.dao.mapper.UserMapper; |
||||
|
||||
import java.util.Map; |
||||
|
||||
import org.slf4j.Logger; |
||||
import org.slf4j.LoggerFactory; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* process task relation service impl |
||||
*/ |
||||
@Service |
||||
public class ProcessTaskRelationServiceImpl extends BaseServiceImpl implements ProcessTaskRelationService { |
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(ProcessTaskRelationServiceImpl.class); |
||||
|
||||
@Autowired |
||||
private ProjectMapper projectMapper; |
||||
|
||||
@Autowired |
||||
private ProjectService projectService; |
||||
|
||||
@Autowired |
||||
private ProcessTaskRelationMapper processTaskRelationMapper; |
||||
|
||||
@Autowired |
||||
private UserMapper userMapper; |
||||
|
||||
/** |
||||
* create process task relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param processDefinitionCode processDefinitionCode |
||||
* @param preTaskCode preTaskCode |
||||
* @param postTaskCode postTaskCode |
||||
* @return create result code |
||||
*/ |
||||
@Override |
||||
public Map<String, Object> createProcessTaskRelation(User loginUser, long projectCode, long processDefinitionCode, long preTaskCode, long postTaskCode) { |
||||
return null; |
||||
} |
||||
|
||||
/** |
||||
* move task to other processDefinition |
||||
* |
||||
* @param loginUser login user info |
||||
* @param projectCode project code |
||||
* @param processDefinitionCode process definition code |
||||
* @param targetProcessDefinitionCode target process definition code |
||||
* @param taskCode the current task code (the post task code) |
||||
* @return move result code |
||||
*/ |
||||
@Override |
||||
public Map<String, Object> moveTaskProcessRelation(User loginUser, long projectCode, long processDefinitionCode, long targetProcessDefinitionCode, long taskCode) { |
||||
return null; |
||||
} |
||||
|
||||
/** |
||||
* delete process task relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param processDefinitionCode process definition code |
||||
* @param taskCode the post task code |
||||
* @return delete result code |
||||
*/ |
||||
@Override |
||||
public Map<String, Object> deleteTaskProcessRelation(User loginUser, long projectCode, long processDefinitionCode, long taskCode) { |
||||
return null; |
||||
} |
||||
|
||||
/** |
||||
* delete task upstream relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param preTaskCodes the pre task codes, sep ',' |
||||
* @param taskCode the post task code |
||||
* @return delete result code |
||||
*/ |
||||
@Override |
||||
public Map<String, Object> deleteUpstreamRelation(User loginUser, long projectCode, String preTaskCodes, long taskCode) { |
||||
return null; |
||||
} |
||||
|
||||
/** |
||||
* delete task downstream relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param postTaskCodes the post task codes, sep ',' |
||||
* @param taskCode the pre task code |
||||
* @return delete result code |
||||
*/ |
||||
@Override |
||||
public Map<String, Object> deleteDownstreamRelation(User loginUser, long projectCode, String postTaskCodes, long taskCode) { |
||||
return null; |
||||
} |
||||
|
||||
/** |
||||
* query task upstream relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param taskCode current task code (post task code) |
||||
* @return process task relation list |
||||
*/ |
||||
@Override |
||||
public Map<String, Object> queryUpstreamRelation(User loginUser, long projectCode, long taskCode) { |
||||
return null; |
||||
} |
||||
|
||||
/** |
||||
* query task downstream relation |
||||
* |
||||
* @param loginUser login user |
||||
* @param projectCode project code |
||||
* @param taskCode pre task code |
||||
* @return process task relation list |
||||
*/ |
||||
@Override |
||||
public Map<String, Object> queryDownstreamRelation(User loginUser, long projectCode, long taskCode) { |
||||
return null; |
||||
} |
||||
} |
Loading…
Reference in new issue