automa icon indicating copy to clipboard operation
automa copied to clipboard

Use Default value for Parameters when running crontab job

Open xiaoquqi opened this issue 1 year ago • 3 comments

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.

xiaoquqi avatar Jan 06 '24 15:01 xiaoquqi

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.

Kholid060 avatar Jan 08 '24 05:01 Kholid060

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 avatar Jan 09 '24 06:01 xiaoquqi

@xiaoquqi 1.如果需要填充默认参数,工作流JSON文件中有一个参数 drawflow.nodes[0].data.parameters。通过修改该参数即可实现填充默认参数。 2. 不弹出默认填充参数窗口,在automa执行工作流之前,将checkParams改为false即可。 f649bf179c9bedb3392991dfe1210de

jianghurong avatar Mar 22 '24 02:03 jianghurong