kevinkelin opened a new issue, #15280:
URL: https://github.com/apache/dolphinscheduler/issues/15280

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   When create a workflow, user can set local params in node definition, like 
the picture below
   
   
![image](https://github.com/apache/dolphinscheduler/assets/2595465/de9aa884-ef21-43d1-8441-3f4562c6ebf6)
   
   
   When start a new instanse by webUI, user can set the param value, 
    
   
![image](https://github.com/apache/dolphinscheduler/assets/2595465/6b989519-4256-420d-a4d5-a6ce1374b6b7)
   
   
   But according to the document, the priority of params,
   > The priority of DolphinScheduler parameters from high to low is: Startup 
Parameter > Local Parameter > Parameter Context > Global Parameter > 
Project-level Parameter.
   
   In this case, the value of *datat* should be "bbbb",  but actually, the 
value of datat is "aaa" which seted in local param. 
   
   
   
   
   ### What you expected to happen
   
   according to the document, the priority of params,
   > The priority of DolphinScheduler parameters from high to low is: Startup 
Parameter > Local Parameter > Parameter Context > Global Parameter > 
Project-level Parameter. 
   
   I think Startup Parameter will update local Parameter
   
   ### How to reproduce
   
   Step1: 
   Create a workflow, add a shell task.
   
   Step2:
   Edit shell task, add stript:
   ```shell
   echo ${datat}
   ``` 
   
   
![image](https://github.com/apache/dolphinscheduler/assets/2595465/70d0360a-2edb-4b14-970d-db65789195c6)
   
   and add a param "datat", default value is "aaa" and then save this workflow. 
   
   Step3:
   Start this workflow, and add a startup params, **datat**, set the value to 
"bbb"
   
   
![image](https://github.com/apache/dolphinscheduler/assets/2595465/3e6987e2-c8e6-4d59-a527-7a6f2603aaeb)
   
   
   Step4:
   Check the task log, the value of  param *datat* is still 'aaa'
   
   ```
   [INFO] 2023-12-05 14:20:24.185 +0800 - process start, process id is: 11226
   [INFO] 2023-12-05 14:20:25.185 +0800 -  -> 
        aaa
   [INFO] 2023-12-05 14:20:25.186 +0800 - process has exited. execute
   ```
   
   
   I check the log, 
   
   
   ```json
   "prepareParamsMap" : {
       ...
       "datat" : {
         "prop" : "datat",
         "direct" : "IN",
         "type" : "VARCHAR",
         "value" : "aaa"
       },
       ...
       "StartParams" : {
         "prop" : "StartParams",
         "direct" : "IN",
         "type" : "VARCHAR",
         "value" : "{\"datat\":\"bbbb\"}"
       }
       ...
   }
   
   ```
   
   ### Anything else
   
   Did I misunderstand the document and the type of Parameter ? 
   
   ### Version
   
   3.2.x
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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