gnailJC commented on code in PR #13455:
URL: 
https://github.com/apache/dolphinscheduler/pull/13455#discussion_r1106764225


##########
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/task/switchtask/SwitchParameters.java:
##########
@@ -74,21 +76,18 @@ public void setDependTaskList(List<SwitchResultVo> 
dependTaskList) {
         this.dependTaskList = dependTaskList;
     }
 
-    public List<String> getNextNode() {
+    public Long getNextNode() {
         return nextNode;
     }
 
     public void setNextNode(Object nextNode) {
-        if (nextNode instanceof String) {
-            List<String> nextNodeList = new ArrayList<>();
-            nextNodeList.add(String.valueOf(nextNode));
-            this.nextNode = nextNodeList;
-        } else if (nextNode instanceof Number) {
-            List<String> nextNodeList = new ArrayList<>();
-            nextNodeList.add(nextNode.toString());
-            this.nextNode = nextNodeList;
+        if (nextNode instanceof Long) {
+            this.nextNode = (Long) nextNode;
         } else {
-            this.nextNode = (ArrayList) nextNode;
+            List<String> nextNodes = (ArrayList) nextNode;

Review Comment:
   <img width="749" alt="image" 
src="https://user-images.githubusercontent.com/31072303/218965398-a007d573-3e62-4d1d-99f6-5c251d60fea0.png";>
   
   An CaseError will occur if the nextNode is empty when `branch flow` is not 
set. 



-- 
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]

Reply via email to