Skip to content

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"}).

OptionTypeDefaultRequiredDescription
titletextnullnot declaredTitle
modulemodulenullnot declaredModule
asyncboolfalsenot declaredAsync

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).

OptionTypeDefaultRequiredDescription
titletextnullnot declaredTitle
modulemodulenullnot declaredModule
asyncboolfalsenot declaredAsync
rolestextnullnot declaredRestrict this events to these roles only (identified by their slug)
featurestextnullnot declaredRestrict this events to entities with these (subscription plan) features activated only (identified by their slug)
allow_agent_triggerboolfalsenot declaredAllow agents to trigger this webhook explicitly. Keep disabled for UI-only webhooks.
agent_input_descriptiontextnullnot declaredOptional human-readable description of request/input payloads agents may pass.
agent_input_schematextnullnot declaredOptional JSON schema for payloads agents may pass.
publicboolfalsenot declaredPublic
refresh_prototypebooltruenot declaredIf true, the prototype’s relations will be refreshed before the event is executed.
tool_nametextnullnot declaredMachine-readable agent tool name, e.g. send_invoice_reminder.
tool_descriptiontextnullnot declaredDescription shown to the agent so it knows when to call this tool.
input_schematextnullnot declaredJSON schema for the tool payload. Agent tools should not require agents to infer inputs from workflow internals.

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).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

Fires just before an Entity of the given module is deleted.

Input ports: none.

Output ports: default (resource; Entity).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

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"}).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

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).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

Fires once an entity of the given module is copied.

Input ports: none.

Output ports: default (resource; default).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

Fires once an entity of the given module is created.

Input ports: none.

Output ports: default (resource; default; recipe type {"kind":"entity","moduleFromOption":"module"}).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

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).

OptionTypeDefaultRequiredDescription
clientclientnullnot declaredClient
frequencyfrequencynullnot declaredFrequency

Fires once an entity of the given module is deleted.

Input ports: none.

Output ports: default (resource; Entity).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

Fires once a user verified their email address.

Input ports: none.

Output ports: default (flow; default; runnable; recipe type {"kind":"entity","moduleFromOption":"module"}).

OptionTypeDefaultRequiredDescription
titletextnullnot declaredTitle
modulemodulenullnot declaredModule
asyncboolfalsenot declaredAsync

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).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule
rolestextnullnot declaredWhen not empty, this policy will only apply if users have at least one of these roles.
allowtextnullnot declaredWhen not empty, this policy will not apply if users have at least one of these roles.

Runs when a message has been sent.

Input ports: none.

Output ports: default (resource; Message), raw_message (string; Raw Message).

Options: none.

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).

OptionTypeDefaultRequiredDescription
titletextnullnot declaredTitle
modulemodulenullnot declaredModule
asyncboolfalsenot declaredAsync