Workflow cast elements
Generated from brezel/api@ddd04f543e0fecc433a351dcaab24d39087b24be — do not edit by hand.
cast/entityModified
Section titled “cast/entityModified”This element is used to send an entity modified event to the frontend.
Input ports: default (any; Input).
Output ports: default (any; Output).
Options: none.
cast/layout
Section titled “cast/layout”Use this element to send layout events to the frontend via the websocket connection. You can e.g. update a resource table with this without reloading the page.
Input ports: default (any; Input).
Output ports: default (any; Output).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
identifier | text | null | not declared | Identifier |
selectors | recipes | [] | not declared | Selectors |
command | select | null | yes (requireOption) | Command Values: refresh. |
payload | recipes | null | not declared | Payload |
cast/progress
Section titled “cast/progress”This element is used to send progress notifications to the frontend. The notification can be updated later when the same process name is used again.
Input ports: default (any; Input).
Output ports: default (any; Output), action (any; Action).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
recipients | text | null | not declared | List of role slugs or users |
send_to_user | bool | true | not declared | Send to current user |
process | text | null | not declared | Process name |
progress | text | null | not declared | Leave empty to simply increment it |
total | text | null | not declared | Total |
title | text | null | not declared | Title |
message | text | null | not declared | Message |
statusMessage | text | null | not declared | Status message |
entity | recipes | null | not declared | Entity |
group | text | null | not declared | Group notifications together by this value |
error | recipes | null | not declared | Error ({code, message}) to send |
actions | text | null | not declared | List of actions |
web_push | bool | false | not declared | Also notify via Web push |
sync | bool | null | not declared | Send event immediately (may slow down the workflow) |
cast/send
Section titled “cast/send”Use this element to send a custom event to the frontend via the websocket connection.
Input ports: default (any; Input).
Output ports: default (any; Output).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
recipients | text | null | not declared | List of role slugs or users |
name | text | null | not declared | Name |
payload | recipes | null | not declared | Payload |
channels | select | null | not declared | Channels the event is broadcast on. The recipients’ workflow channels are always active. Values: entity, user, layout. |
cast/set
Section titled “cast/set”Use this element to set values in the frontend via the websocket connection. This can be used multiple times in a workflow instead of just once with response/set.
Input ports: default (any; Input).
Output ports: default (any; Output).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
values | recipes | [] | not declared | Values |
properties | recipes | [] | not declared | Properties |