automa
automa copied to clipboard
Use Default value for Parameters when running crontab job
I have a parameter with default value for my workflow, my requirement is to use this default value for my crontab job instead of poping a dialog and let me click run button. When I mannually trigger this workflow, the parameter dialog will appear and let me enter my value for parameter. This is a little like Jenkins job configuration.
I am not quite sure this is an existing function or implement in other way.
Thanks.
If you do not intend to take a value from the user when running a workflow, use the global data to define your config instead.
If you do not intend to take a value from the user when running a workflow, use the global data to define your config instead.
Thanks for your reply. Let me describe my senarios more detailed.
I hava a task, By default, it triggered by corntab. But sometimes when the task went error, I need to re-run this task. But in my task it's a loop and time related by current time, so I need to specify this arguments to run as my required hour tasks. Currently I used Javascript Code to control this, but sometimes I forgot to change back and it made duplicate task running. So I think if there's a parameter to do this, I will affect my inside logical in my workflow.
Any ideas about this, Thanks.
@xiaoquqi
1.如果需要填充默认参数,工作流JSON文件中有一个参数 drawflow.nodes[0].data.parameters。通过修改该参数即可实现填充默认参数。
2. 不弹出默认填充参数窗口,在automa执行工作流之前,将checkParams改为false即可。