Skip to content

Workflow event elements — part 3

Generated from brezel/api@ddd04f543e0fecc433a351dcaab24d39087b24be — do not edit by hand.

Runs when someone tries to read an Entity of a given module

Input ports: none.

Output ports: default (query; Query).

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.
roleKeyselectnamenot declaredId roles by Values: slug, name.

Runs when someone tries to update an Entity of a given module

Input ports: none.

Output ports: default (query; Query), entity (resource; Entity).

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.
roleKeyselectnamenot declaredId roles by Values: slug, name.

Fires once when a one-time product (e.g. a credit pack) of a Buyable module was paid for an entity.

Input ports: none.

Output ports: default (resource; Entity), product (resource; Product), price (resource; Price), purchase (resource; Purchase).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

Runs when an entity is read.

Input ports: none.

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

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

Runs when a scoped query is run on this module.

Input ports: none.

Output ports: default (query; default).

Options: none.

Fires when a subscription plan is activated for an entity in a given module.

Input ports: none.

Output ports: default (resource; Entity), plan (resource; Plan).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

Fires when a subscription plan is deactivated for an entity in a given module.

Input ports: none.

Output ports: default (resource; Entity), plan (resource; Plan).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

Fires when the active_features for an entity of a given module changed.

Input ports: none.

Output ports: default (resource; Entity), active_features (resource; Active Features), old_active_features (resource; Old Active Features).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

Fires when an invoice for a subscription was paid.

Input ports: none.

Output ports: default (resource; Entity), plan (resource; Plan), price (resource; Price).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

Fires when a payment for a subscription plan fails for an entity in a given module.

Input ports: none.

Output ports: default (resource; Entity), plan (string; Plan), attempts (any; Attempts).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule

Run when an entity of a module is updated. Can be configured to only run when specific fields are changed.

Input ports: none.

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

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule
fieldsfield[]not declaredFields to watch for changes. If empty, all fields will be watched.

A multipurpose Event that can be triggered by e.g. buttons or even manually. Run when the webhook is called.

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.