zhongjiajie commented on code in PR #11912:
URL: https://github.com/apache/dolphinscheduler/pull/11912#discussion_r976258265
##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ProcessDefinitionService.java:
##########
@@ -67,6 +70,15 @@ Map<String, Object> createProcessDefinition(User loginUser,
String otherParamsJson,
ProcessExecutionTypeEnum
executionType);
+ /**
+ * create process definition V2
+ *
+ * @param loginUser login user
+ * @param workflowCreateRequest the new workflow object will be created
+ * @return New ProcessDefinition object created just now
+ */
+ ProcessDefinition createProcessDefinitionV2(User loginUser,
WorkflowCreateRequest workflowCreateRequest);
Review Comment:
v1 is for currently API(operate workflow and task and task relation object),
and V2 is only operate workflow object. V2 is mainly for RESTful api, which we
only change one single object instand of too many object
--
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]