|
@@ -95,22 +95,22 @@ public class ExecutorController extends BaseController {
|
|
|
*/
|
|
|
@ApiOperation(value = "startProcessInstance", notes = "RUN_PROCESS_INSTANCE_NOTES")
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "processDefinitionCode", value = "PROCESS_DEFINITION_CODE", required = true, dataType = "Long", example = "100"),
|
|
|
- @ApiImplicitParam(name = "scheduleTime", value = "SCHEDULE_TIME", dataType = "String"),
|
|
|
- @ApiImplicitParam(name = "failureStrategy", value = "FAILURE_STRATEGY", required = true, dataType = "FailureStrategy"),
|
|
|
- @ApiImplicitParam(name = "startNodeList", value = "START_NODE_LIST", dataType = "String"),
|
|
|
- @ApiImplicitParam(name = "taskDependType", value = "TASK_DEPEND_TYPE", dataType = "TaskDependType"),
|
|
|
- @ApiImplicitParam(name = "execType", value = "COMMAND_TYPE", dataType = "CommandType"),
|
|
|
- @ApiImplicitParam(name = "warningType", value = "WARNING_TYPE", required = true, dataType = "WarningType"),
|
|
|
- @ApiImplicitParam(name = "warningGroupId", value = "WARNING_GROUP_ID", dataType = "Int", example = "100"),
|
|
|
- @ApiImplicitParam(name = "runMode", value = "RUN_MODE", dataType = "RunMode"),
|
|
|
- @ApiImplicitParam(name = "processInstancePriority", value = "PROCESS_INSTANCE_PRIORITY", required = true, dataType = "Priority"),
|
|
|
- @ApiImplicitParam(name = "workerGroup", value = "WORKER_GROUP", dataType = "String", example = "default"),
|
|
|
- @ApiImplicitParam(name = "environmentCode", value = "ENVIRONMENT_CODE", dataType = "Long", example = "-1"),
|
|
|
- @ApiImplicitParam(name = "timeout", value = "TIMEOUT", dataType = "Int", example = "100"),
|
|
|
- @ApiImplicitParam(name = "expectedParallelismNumber", value = "EXPECTED_PARALLELISM_NUMBER", dataType = "Int" , example = "8"),
|
|
|
- @ApiImplicitParam(name = "dryRun", value = "DRY_RUN", dataType = "Int", example = "0"),
|
|
|
- @ApiImplicitParam(name = "complementDependentMode", value = "COMPLEMENT_DEPENDENT_MODE", dataType = "complementDependentMode")
|
|
|
+ @ApiImplicitParam(name = "processDefinitionCode", value = "PROCESS_DEFINITION_CODE", required = true, dataType = "Long", example = "100"),
|
|
|
+ @ApiImplicitParam(name = "scheduleTime", value = "SCHEDULE_TIME", required = true, dataType = "String", example = "2022-04-06 00:00:00,2022-04-06 00:00:00"),
|
|
|
+ @ApiImplicitParam(name = "failureStrategy", value = "FAILURE_STRATEGY", required = true, dataType = "FailureStrategy"),
|
|
|
+ @ApiImplicitParam(name = "startNodeList", value = "START_NODE_LIST", dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "taskDependType", value = "TASK_DEPEND_TYPE", dataType = "TaskDependType"),
|
|
|
+ @ApiImplicitParam(name = "execType", value = "COMMAND_TYPE", dataType = "CommandType"),
|
|
|
+ @ApiImplicitParam(name = "warningType", value = "WARNING_TYPE", required = true, dataType = "WarningType"),
|
|
|
+ @ApiImplicitParam(name = "warningGroupId", value = "WARNING_GROUP_ID", dataType = "Int", example = "100"),
|
|
|
+ @ApiImplicitParam(name = "runMode", value = "RUN_MODE", dataType = "RunMode"),
|
|
|
+ @ApiImplicitParam(name = "processInstancePriority", value = "PROCESS_INSTANCE_PRIORITY", required = true, dataType = "Priority"),
|
|
|
+ @ApiImplicitParam(name = "workerGroup", value = "WORKER_GROUP", dataType = "String", example = "default"),
|
|
|
+ @ApiImplicitParam(name = "environmentCode", value = "ENVIRONMENT_CODE", dataType = "Long", example = "-1"),
|
|
|
+ @ApiImplicitParam(name = "timeout", value = "TIMEOUT", dataType = "Int", example = "100"),
|
|
|
+ @ApiImplicitParam(name = "expectedParallelismNumber", value = "EXPECTED_PARALLELISM_NUMBER", dataType = "Int" , example = "8"),
|
|
|
+ @ApiImplicitParam(name = "dryRun", value = "DRY_RUN", dataType = "Int", example = "0"),
|
|
|
+ @ApiImplicitParam(name = "complementDependentMode", value = "COMPLEMENT_DEPENDENT_MODE", dataType = "complementDependentMode")
|
|
|
})
|
|
|
@PostMapping(value = "start-process-instance")
|
|
|
@ResponseStatus(HttpStatus.OK)
|
|
@@ -119,7 +119,7 @@ public class ExecutorController extends BaseController {
|
|
|
public Result startProcessInstance(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser,
|
|
|
@ApiParam(name = "projectCode", value = "PROJECT_CODE", required = true) @PathVariable long projectCode,
|
|
|
@RequestParam(value = "processDefinitionCode") long processDefinitionCode,
|
|
|
- @RequestParam(value = "scheduleTime", required = false) String scheduleTime,
|
|
|
+ @RequestParam(value = "scheduleTime") String scheduleTime,
|
|
|
@RequestParam(value = "failureStrategy") FailureStrategy failureStrategy,
|
|
|
@RequestParam(value = "startNodeList", required = false) String startNodeList,
|
|
|
@RequestParam(value = "taskDependType", required = false) TaskDependType taskDependType,
|
|
@@ -159,7 +159,7 @@ public class ExecutorController extends BaseController {
|
|
|
* batch execute process instance
|
|
|
* If any processDefinitionCode cannot be found, the failure information is returned and the status is set to
|
|
|
* failed. The successful task will run normally and will not stop
|
|
|
- *
|
|
|
+ *
|
|
|
* @param loginUser login user
|
|
|
* @param projectCode project code
|
|
|
* @param processDefinitionCodes process definition codes
|
|
@@ -180,7 +180,7 @@ public class ExecutorController extends BaseController {
|
|
|
@ApiOperation(value = "batchStartProcessInstance", notes = "BATCH_RUN_PROCESS_INSTANCE_NOTES")
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "processDefinitionCodes", value = "PROCESS_DEFINITION_CODES", required = true, dataType = "String", example = "1,2,3"),
|
|
|
- @ApiImplicitParam(name = "scheduleTime", value = "SCHEDULE_TIME", required = true, dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "scheduleTime", value = "SCHEDULE_TIME", required = true, dataType = "String", example = "2022-04-06 00:00:00,2022-04-06 00:00:00"),
|
|
|
@ApiImplicitParam(name = "failureStrategy", value = "FAILURE_STRATEGY", required = true, dataType = "FailureStrategy"),
|
|
|
@ApiImplicitParam(name = "startNodeList", value = "START_NODE_LIST", dataType = "String"),
|
|
|
@ApiImplicitParam(name = "taskDependType", value = "TASK_DEPEND_TYPE", dataType = "TaskDependType"),
|
|
@@ -201,24 +201,24 @@ public class ExecutorController extends BaseController {
|
|
|
@ApiException(START_PROCESS_INSTANCE_ERROR)
|
|
|
@AccessLogAnnotation(ignoreRequestArgs = "loginUser")
|
|
|
public Result batchStartProcessInstance(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser,
|
|
|
- @ApiParam(name = "projectCode", value = "PROJECT_CODE", required = true) @PathVariable long projectCode,
|
|
|
- @RequestParam(value = "processDefinitionCodes") String processDefinitionCodes,
|
|
|
- @RequestParam(value = "scheduleTime", required = false) String scheduleTime,
|
|
|
- @RequestParam(value = "failureStrategy") FailureStrategy failureStrategy,
|
|
|
- @RequestParam(value = "startNodeList", required = false) String startNodeList,
|
|
|
- @RequestParam(value = "taskDependType", required = false) TaskDependType taskDependType,
|
|
|
- @RequestParam(value = "execType", required = false) CommandType execType,
|
|
|
- @RequestParam(value = "warningType") WarningType warningType,
|
|
|
- @RequestParam(value = "warningGroupId", required = false) int warningGroupId,
|
|
|
- @RequestParam(value = "runMode", required = false) RunMode runMode,
|
|
|
- @RequestParam(value = "processInstancePriority", required = false) Priority processInstancePriority,
|
|
|
- @RequestParam(value = "workerGroup", required = false, defaultValue = "default") String workerGroup,
|
|
|
- @RequestParam(value = "environmentCode", required = false, defaultValue = "-1") Long environmentCode,
|
|
|
- @RequestParam(value = "timeout", required = false) Integer timeout,
|
|
|
- @RequestParam(value = "startParams", required = false) String startParams,
|
|
|
- @RequestParam(value = "expectedParallelismNumber", required = false) Integer expectedParallelismNumber,
|
|
|
- @RequestParam(value = "dryRun", defaultValue = "0", required = false) int dryRun,
|
|
|
- @RequestParam(value = "complementDependentMode", required = false) ComplementDependentMode complementDependentMode) {
|
|
|
+ @ApiParam(name = "projectCode", value = "PROJECT_CODE", required = true) @PathVariable long projectCode,
|
|
|
+ @RequestParam(value = "processDefinitionCodes") String processDefinitionCodes,
|
|
|
+ @RequestParam(value = "scheduleTime") String scheduleTime,
|
|
|
+ @RequestParam(value = "failureStrategy") FailureStrategy failureStrategy,
|
|
|
+ @RequestParam(value = "startNodeList", required = false) String startNodeList,
|
|
|
+ @RequestParam(value = "taskDependType", required = false) TaskDependType taskDependType,
|
|
|
+ @RequestParam(value = "execType", required = false) CommandType execType,
|
|
|
+ @RequestParam(value = "warningType") WarningType warningType,
|
|
|
+ @RequestParam(value = "warningGroupId", required = false) int warningGroupId,
|
|
|
+ @RequestParam(value = "runMode", required = false) RunMode runMode,
|
|
|
+ @RequestParam(value = "processInstancePriority", required = false) Priority processInstancePriority,
|
|
|
+ @RequestParam(value = "workerGroup", required = false, defaultValue = "default") String workerGroup,
|
|
|
+ @RequestParam(value = "environmentCode", required = false, defaultValue = "-1") Long environmentCode,
|
|
|
+ @RequestParam(value = "timeout", required = false) Integer timeout,
|
|
|
+ @RequestParam(value = "startParams", required = false) String startParams,
|
|
|
+ @RequestParam(value = "expectedParallelismNumber", required = false) Integer expectedParallelismNumber,
|
|
|
+ @RequestParam(value = "dryRun", defaultValue = "0", required = false) int dryRun,
|
|
|
+ @RequestParam(value = "complementDependentMode", required = false) ComplementDependentMode complementDependentMode) {
|
|
|
|
|
|
if (timeout == null) {
|
|
|
timeout = Constants.MAX_TASK_TIMEOUT;
|
|
@@ -269,8 +269,8 @@ public class ExecutorController extends BaseController {
|
|
|
*/
|
|
|
@ApiOperation(value = "execute", notes = "EXECUTE_ACTION_TO_PROCESS_INSTANCE_NOTES")
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "processInstanceId", value = "PROCESS_INSTANCE_ID", required = true, dataType = "Int", example = "100"),
|
|
|
- @ApiImplicitParam(name = "executeType", value = "EXECUTE_TYPE", required = true, dataType = "ExecuteType")
|
|
|
+ @ApiImplicitParam(name = "processInstanceId", value = "PROCESS_INSTANCE_ID", required = true, dataType = "Int", example = "100"),
|
|
|
+ @ApiImplicitParam(name = "executeType", value = "EXECUTE_TYPE", required = true, dataType = "ExecuteType")
|
|
|
})
|
|
|
@PostMapping(value = "/execute")
|
|
|
@ResponseStatus(HttpStatus.OK)
|
|
@@ -293,7 +293,7 @@ public class ExecutorController extends BaseController {
|
|
|
*/
|
|
|
@ApiOperation(value = "startCheckProcessDefinition", notes = "START_CHECK_PROCESS_DEFINITION_NOTES")
|
|
|
@ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "processDefinitionCode", value = "PROCESS_DEFINITION_CODE", required = true, dataType = "Long", example = "100")
|
|
|
+ @ApiImplicitParam(name = "processDefinitionCode", value = "PROCESS_DEFINITION_CODE", required = true, dataType = "Long", example = "100")
|
|
|
})
|
|
|
@PostMapping(value = "/start-check")
|
|
|
@ResponseStatus(HttpStatus.OK)
|