calvinjiang opened a new pull request #7046: URL: https://github.com/apache/dolphinscheduler/pull/7046
<!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.--> ## Purpose of the pull request This PR will close the issue #7019 . ## Brief change log There are two functions to need be improved. First , the function 'setNextNode(Object nextNode) ' contained an 'ClassCastException' in the class 'SwitchResultVo.java ' ,because the original type of the parameter nextNode is 'Long' . Second, the function 'isTaskNodeNeedSkip(TaskNode taskNode,Map<String, TaskInstance> completeTaskList,DAG<String, TaskNode, TaskNodeRelation> dag) ' contained a bug, because the key in the map of completeTaskList is 'taskCode', so need to use 'taskCode' to look for the mapping object. ## Verify this pull request This change added tests and can be verified as follows: - *Manually verified the change by testing locally.* 1.Create a new process that contains the switch task.  2.Set a global parameter named 'id' ,and its value equals 1.  3. Set two conditions for the switch task , when '${id} == 1 ' , the lower task1 will be executed, when '${id} == 2' , the lower task2 will be executed.  4.Then save the process and run it, you will see the results. When the value of the global parameter id equals 1.  When the value of the global parameter id equals 2.  -- 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]
