要执行工作流,请从所选工作流的上下文中使用 execute 命令。如果工作流不具有任何参数,则会直接执行:
dory:maintenance workflow-000> execute hello world!
如果工作流具有参数,上下文将变为自持上下文,在其中必须指定参数:
dory:maintenance workflow-000> execute dory:maintenance workflow-000 execute (uncommitted)> get type = (unset) overwrite = (unset)
在未设置必要参数前任何提交工作流执行的尝试都将导致显式错误的发生:
dory:maintenance workflow-000 execute (uncommitted)> commit error: cannot execute workflow without setting property "type"
要执行工作流,请设置指定的参数,然后使用 commit 命令:
dory:maintenance workflow-000 execute (uncommitted)> set type=system type = system dory:maintenance workflow-000 execute (uncommitted)> set overwrite=true overwrite = true dory:maintenance workflow-000 execute (uncommitted)> commit
如果工作流具有指定的步骤,这些步骤会通过 CLI 显示,例如:
dory:maintenance workflow-000 execute (uncommitted)> commit Checking for existing worksheet ... done Finding disks of specified type ... done Creating worksheet ... done