流动流动

概览

保存的工作流程: 运行它, 列出运行过程, 测试一步, 修改它, 删除它 。

5 methodsdata holds the definitionupdate revalidates
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

调用功能
运行({ 输入} )开始运行并返回它。
运行( 运行)历史悠久
runStep( id, 上下文)单步跑步,一无所有
(批量)更新改变它 重新校正了整部
(销毁)删除。
idstring

识别资料

dataobject

定义: name, trigger, steps, edges.

通常顺序

const workflow = await api.workflows.create(definition);

await workflow.runStep("write", { input: { since: "2026-10-01" } });   // try one step
const run = await workflow.run({ input: { since: "2026-10-01" } });    // then the chain
await run.wait();
workflow = api.workflows.create(definition)

workflow.run_step("write", input={"since": "2026-10-01"})   # try one step
run = workflow.run(input={"since": "2026-10-01"})           # then the chain
run.wait()
部署链之前的测试步骤

runStep () 运行一个步骤, 无论您给它提供什么背景, 并且不更改它。 与第五步发现第二步产生错误形状相比, 便宜得多 。

对象自动更新

update() 替换 data 物体上的东西回来, 所以,你持有的 情况保持时尚。