工作流定义

概览

名称、 触发器、 步骤和它们之间的边缘。 可以在检查的所有东西都会在保存时被检查, 因为工作流量在无人观看的地方失败 。

30 steps23 typesvalidated on save
Using Python?

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

{
  name: "Weekly digest",
  trigger: { type: "cron", cron: "0 8 * * 1" },
  steps: [
    { id: "read",  type: "storage.query",  config: { … } },
    { id: "write", type: "model.generate", config: { … } },
  ],
  edges: [
    { from: "__trigger", to: "read" },
    { from: "read", to: "write" },
  ],
}
{
    "name": "Weekly digest",
    "trigger": {"type": "cron", "cron": "0 8 * * 1"},
    "steps": [
        {"id": "read", "type": "storage.query", "config": {}},
        {"id": "write", "type": "model.generate", "config": {}},
    ],
    "edges": [
        {"from": "__trigger", "to": "read"},
        {"from": "read", "to": "write"},
    ],
}
namestring必填

所谓的它是什么。

triggerobject必填

manual · cron · webhook · mail.

stepsarray必填

一到三十步 开始

edgesarray

图图. 缺席系指 steps 链是链。

单步标识符

字母、字母、数字、下划线或划线、最多40个字符、工作流程中独有的。它们就是模板和边边的名称,因此值得选择: draft, approve, send.

模板

书面读读
{{input.since}}跑步的输入。
{{steps.read.output.result}}上游一步的输出。

提及工作流程不支持的一步,或提及 上游,当工作流程被保存时拒绝拒绝 。 错误错误.

三个步骤类型需要人性的一步

mail.send, hosting.deploy 和 domain.records

每一个人都行动在账户之外,没有人可以要求逃跑。 人类一步必须走在通往账户的道路上,而没有定义的定义在你们拯救时被拒绝。

本分支的其余部分