Workflow event elements — part 1
Generated from brezel/api@ddd04f543e0fecc433a351dcaab24d39087b24be — do not edit by hand.
This element serves the purpose of managing event connection and connection behavior to associated other elements. It works by defining event elements with the same name as events. If the workflow is triggered by an event, and the workflow contains an element with the same name, then this element is used as entry.
Input ports: none.
Output ports: default (flow; default; runnable; recipe type {"kind":"entity","moduleFromOption":"module"}).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
title | text | null | not declared | Title |
module | module | null | not declared | Module |
async | bool | false | not declared | Async |
event/agent_tool
Section titled “event/agent_tool”No help text declared in the source catalog.
Input ports: none.
Output ports: default (flow; default; runnable; recipe type {"kind":"entity","moduleFromOption":"module"}), prototype (resource; prototype), context (resource; context), selected (any; Selected), input (any; Params), request (any; Request).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
title | text | null | not declared | Title |
module | module | null | not declared | Module |
async | bool | false | not declared | Async |
roles | text | null | not declared | Restrict this events to these roles only (identified by their slug) |
features | text | null | not declared | Restrict this events to entities with these (subscription plan) features activated only (identified by their slug) |
allow_agent_trigger | bool | false | not declared | Allow agents to trigger this webhook explicitly. Keep disabled for UI-only webhooks. |
agent_input_description | text | null | not declared | Optional human-readable description of request/input payloads agents may pass. |
agent_input_schema | text | null | not declared | Optional JSON schema for payloads agents may pass. |
public | bool | false | not declared | Public |
refresh_prototype | bool | true | not declared | If true, the prototype’s relations will be refreshed before the event is executed. |
tool_name | text | null | not declared | Machine-readable agent tool name, e.g. send_invoice_reminder. |
tool_description | text | null | not declared | Description shown to the agent so it knows when to call this tool. |
input_schema | text | null | not declared | JSON schema for the tool payload. Agent tools should not require agents to infer inputs from workflow internals. |
event/beforeCreate
Section titled “event/beforeCreate”Runs before an entity is created. Use it to validate or block (action/validate). Values changed here are not persisted on a normal UI/REST save; use event/create with op/set and action/save instead.
Input ports: none.
Output ports: default (resource; Entity).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
module | module | null | not declared | Module |
event/beforeDelete
Section titled “event/beforeDelete”Fires just before an Entity of the given module is deleted.
Input ports: none.
Output ports: default (resource; Entity).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
module | module | null | not declared | Module |
event/beforeSave
Section titled “event/beforeSave”Runs before an entity is created or updated. Use it to validate or block (action/validate). Values changed here with op/set are not persisted on a normal UI/REST save, because the values are captured before this event runs; use event/create or event/update with op/set and action/save instead.
Input ports: none.
Output ports: default (resource; Entity; recipe type {"kind":"entity","moduleFromOption":"module"}), original (resource; Original; recipe type {"kind":"entity","moduleFromOption":"module"}).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
module | module | null | not declared | Module |
event/beforeUpdate
Section titled “event/beforeUpdate”Runs before an entity is updated. Use it to validate or block (action/validate). Values changed here are not persisted on a normal UI/REST save; use event/update with op/set and action/save instead.
Input ports: none.
Output ports: default (resource; Entity), original (resource; Original).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
module | module | null | not declared | Module |
event/copy
Section titled “event/copy”Fires once an entity of the given module is copied.
Input ports: none.
Output ports: default (resource; default).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
module | module | null | not declared | Module |
event/create
Section titled “event/create”Fires once an entity of the given module is created.
Input ports: none.
Output ports: default (resource; default; recipe type {"kind":"entity","moduleFromOption":"module"}).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
module | module | null | not declared | Module |
event/cron
Section titled “event/cron”Can be used to run a workflow on a cron schedule. Clients can be specified to run the workflow for a specific client.
Input ports: none.
Output ports: default (unspecified; default).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
client | client | null | not declared | Client |
frequency | frequency | null | not declared | Frequency |
event/delete
Section titled “event/delete”Fires once an entity of the given module is deleted.
Input ports: none.
Output ports: default (resource; Entity).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
module | module | null | not declared | Module |
event/emailVerified
Section titled “event/emailVerified”Fires once a user verified their email address.
Input ports: none.
Output ports: default (flow; default; runnable; recipe type {"kind":"entity","moduleFromOption":"module"}).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
title | text | null | not declared | Title |
module | module | null | not declared | Module |
async | bool | false | not declared | Async |
event/fieldPolicy
Section titled “event/fieldPolicy”Run when the policy for a field is changed. E.g. when it is dynamically hidden or protected.
Input ports: none.
Output ports: each (unspecified; each), all (unspecified; all).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
module | module | null | not declared | Module |
roles | text | null | not declared | When not empty, this policy will only apply if users have at least one of these roles. |
allow | text | null | not declared | When not empty, this policy will not apply if users have at least one of these roles. |
event/messageSent
Section titled “event/messageSent”Runs when a message has been sent.
Input ports: none.
Output ports: default (resource; Message), raw_message (string; Raw Message).
Options: none.
event/ocrReady
Section titled “event/ocrReady”Runs when OCR processing is ready.
Input ports: none.
Output ports: default (flow; default; runnable; recipe type {"kind":"entity","moduleFromOption":"module"}), file (resource; File), ocr (string; OCR), error (string; Error).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
title | text | null | not declared | Title |
module | module | null | not declared | Module |
async | bool | false | not declared | Async |