guowei-su commented on issue #11970:
URL: 
https://github.com/apache/dolphinscheduler/issues/11970#issuecomment-1687616734

   Hi, I will contribute this feature.
   The dependency mode for dependent node in dev branches will be modified. 
   
   - The logic of **Dependent on ALL** will be changed from **checking the 
workflow state** to **checking the state of all task instances in the 
workflow**. 
   - A new **Dependent on workflow** is added that is responsible for 
**checking the workflow state**. 
   - For compatibility with user history data, 
Constants.DEPENDENT_WORKFLOW_CODE will be assigned a value of 0, replacing the 
original Constants.DEPENDENT_ALL_TASK_CODE, and 
Constants.DEPENDENT_ALL_TASK_CODE will be assigned a value of -1. 
   
   I'll add a drop-down select box that controls the type of dependency to the 
front-end code to support this feature. The select box options include 
**Dependent on workflow** and **Dependent on task**. When Dependent on workflow 
is selected, it looks like the following image:
   
![image](https://github.com/apache/dolphinscheduler/assets/56352018/e38f8bbc-4114-4710-a7e7-1973db443b66)
   When Dependent on task is selected, as shown below:
   
![image](https://github.com/apache/dolphinscheduler/assets/56352018/a4b50060-b0b1-490b-a123-88cf002bca4a)


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