ACTION_ASSERT
Assert a condition and fail the current workflow node when it is false, routing execution into error handling catchable by on_error, try/catch, or retry.
Instructions
断言:条件为假时让本节点失败,进入错误处理。失败按节点出错处理,可被 on_error、ACTION_TRY_CATCH、ACTION_RETRY 捕获。运算符 ==、!=、>、<、>=、<=(无 contains);两边先按变量名取值,取不到当字面值;不支持 ${var},值不加引号。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | 失败时的错误信息(写入 last_error) | |
| require | No | 执行后要求为 true 的变量名(如 click_success),不满足按出错处理 | |
| on_error | No | 节点出错时:skip=跳过继续(默认),stop=停止整个工作流 | |
| condition | Yes | 条件:变量名 运算符 值(如 x == 6),或布尔变量名 | |
| node_timeout_ms | No | 单节点超时毫秒,0=不限;默认 30 分钟 |