ruanwenjun commented on code in PR #16327:
URL:
https://github.com/apache/dolphinscheduler/pull/16327#discussion_r1729051563
##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/validator/workflow/TriggerWorkflowRequestValidator.java:
##########
@@ -15,18 +15,20 @@
* limitations under the License.
*/
-package org.apache.dolphinscheduler.server.master.runner;
+package org.apache.dolphinscheduler.api.validator.workflow;
-import java.util.concurrent.Callable;
+import org.apache.dolphinscheduler.api.validator.IValidator;
-public interface IWorkflowExecuteRunnable extends
Callable<WorkflowStartStatus> {
- // todo: add control method to manage the workflow runnable e.g.
pause/stop ....
+import lombok.extern.slf4j.Slf4j;
- @Override
- default WorkflowStartStatus call() {
- return startWorkflow();
- }
+import org.springframework.stereotype.Component;
- WorkflowStartStatus startWorkflow();
+@Slf4j
+@Component
+public class TriggerWorkflowRequestValidator implements
IValidator<TriggerWorkflowDTO> {
+ @Override
+ public void validate(final TriggerWorkflowDTO triggerWorkflowDTO) {
Review Comment:
Yed, added.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]