跳转至

Effects(效果(Effects))

Effects define what happens when an automation is triggered. When a condition is met, the automation executes one or more effects to perform actions, apply logic, execute functions, or send notifications.

Effect types

Automate supports the following types of effects:

Fallback effects

Action, logic, and function effects can be configured with a fallback effect. Fallback effects execute when the primary effect fails, allowing you to handle errors gracefully by sending notifications, logging failures, or triggering alternative workflows.

Effect settings

Configure how effects execute with effect settings, including:

  • Concurrency: Run effects sequentially or in parallel
  • Object edits: Control how multiple edits are handled
  • Execution guarantees: Understand at-least-once execution semantics

中文翻译

效果(Effects)

效果定义了自动化触发时执行的操作。当条件满足时,自动化会执行一个或多个效果,以执行操作、应用逻辑、运行函数或发送通知。

效果类型(Effect types)

Automate 支持以下类型的效果:

回退效果(Fallback effects)

操作效果、逻辑效果和函数效果可以配置回退效果。当主要效果执行失败时,回退效果会执行,允许您通过发送通知、记录失败或触发替代工作流来优雅地处理错误。

效果设置(Effect settings)

通过效果设置配置效果的执行方式,包括:

  • 并发(Concurrency): 按顺序或并行运行效果
  • 对象编辑(Object edits): 控制多个编辑的处理方式
  • 执行保证(Execution guarantees): 理解至少一次执行语义