-
Notifications
You must be signed in to change notification settings - Fork 5k
[Improvement-16546][Master] Add repeatTriggerWorkflowInstance/triggerFromFailureTasks/triggerFromSuspendTasks in IWorkflowControlClient #16545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d057d27 to
bd40b64
Compare
SbloodyS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| protected abstract Command constructTriggerCommand(final TriggerRequest triggerRequest, | ||
| final WorkflowInstance workflowInstance); | ||
|
|
||
| protected abstract TriggerResponse onTriggerSuccess(final WorkflowInstance workflowInstance); |
Check notice
Code scanning / CodeQL
Useless parameter
| return Command.builder() | ||
| .commandType(CommandType.START_FAILURE_TASK_PROCESS) | ||
| .processDefinitionCode(workflowInstance.getProcessDefinitionCode()) | ||
| .processDefinitionVersion(workflowInstance.getProcessDefinitionVersion()) | ||
| .processInstanceId(workflowInstance.getId()) | ||
| .executorId(workflowInstanceRecoverFailureTasksRequest.getUserId()) | ||
| .startTime(new Date()) | ||
| .updateTime(new Date()) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
| return Command.builder() | ||
| .commandType(CommandType.START_FAILURE_TASK_PROCESS) | ||
| .processDefinitionCode(workflowInstance.getProcessDefinitionCode()) | ||
| .processDefinitionVersion(workflowInstance.getProcessDefinitionVersion()) | ||
| .processInstanceId(workflowInstance.getId()) | ||
| .executorId(workflowInstanceRecoverFailureTasksRequest.getUserId()) | ||
| .startTime(new Date()) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
| return Command.builder() | ||
| .commandType(CommandType.START_FAILURE_TASK_PROCESS) | ||
| .processDefinitionCode(workflowInstance.getProcessDefinitionCode()) | ||
| .processDefinitionVersion(workflowInstance.getProcessDefinitionVersion()) | ||
| .processInstanceId(workflowInstance.getId()) | ||
| .executorId(workflowInstanceRecoverFailureTasksRequest.getUserId()) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
| return Command.builder() | ||
| .commandType(CommandType.RECOVER_SUSPENDED_PROCESS) | ||
| .processDefinitionCode(workflowInstance.getProcessDefinitionCode()) | ||
| .processDefinitionVersion(workflowInstance.getProcessDefinitionVersion()) | ||
| .processInstanceId(workflowInstance.getId()) | ||
| .executorId(workflowInstanceRecoverSuspendTasksRequest.getUserId()) | ||
| .startTime(new Date()) | ||
| .updateTime(new Date()) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
| return Command.builder() | ||
| .commandType(CommandType.RECOVER_SUSPENDED_PROCESS) | ||
| .processDefinitionCode(workflowInstance.getProcessDefinitionCode()) | ||
| .processDefinitionVersion(workflowInstance.getProcessDefinitionVersion()) | ||
| .processInstanceId(workflowInstance.getId()) | ||
| .executorId(workflowInstanceRecoverSuspendTasksRequest.getUserId()) | ||
| .startTime(new Date()) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
| return Command.builder() | ||
| .commandType(CommandType.RECOVER_SUSPENDED_PROCESS) | ||
| .processDefinitionCode(workflowInstance.getProcessDefinitionCode()) | ||
| .processDefinitionVersion(workflowInstance.getProcessDefinitionVersion()) | ||
| .processInstanceId(workflowInstance.getId()) | ||
| .executorId(workflowInstanceRecoverSuspendTasksRequest.getUserId()) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
| return Command.builder() | ||
| .commandType(CommandType.REPEAT_RUNNING) | ||
| .processInstanceId(workflowInstance.getId()) | ||
| .processDefinitionCode(workflowInstance.getProcessDefinitionCode()) | ||
| .processDefinitionVersion(workflowInstance.getProcessDefinitionVersion()) | ||
| .executorId(repeatRunningRequest.getUserId()) | ||
| .startTime(new Date()) | ||
| .updateTime(new Date()) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
| return Command.builder() | ||
| .commandType(CommandType.REPEAT_RUNNING) | ||
| .processInstanceId(workflowInstance.getId()) | ||
| .processDefinitionCode(workflowInstance.getProcessDefinitionCode()) | ||
| .processDefinitionVersion(workflowInstance.getProcessDefinitionVersion()) | ||
| .executorId(repeatRunningRequest.getUserId()) | ||
| .startTime(new Date()) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
| return Command.builder() | ||
| .commandType(CommandType.REPEAT_RUNNING) | ||
| .processInstanceId(workflowInstance.getId()) | ||
| .processDefinitionCode(workflowInstance.getProcessDefinitionCode()) | ||
| .processDefinitionVersion(workflowInstance.getProcessDefinitionVersion()) | ||
| .executorId(repeatRunningRequest.getUserId()) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation
bd40b64 to
e52219f
Compare
|
caishunfeng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1


Purpose of the pull request
close #16546
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
Pull Request Notice
Pull Request Notice
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md