Workflow action elements — part 3
Generated from brezel/api@ddd04f543e0fecc433a351dcaab24d39087b24be — do not edit by hand.
action/notify
Section titled “action/notify”Sends multiple kinds of notification. Notifications are via the websocket connection. Toasts can be only send once per workflow run and only from sync workflows as they are based on the HTTP response. For Emails, use action/mail.
Input ports: default (any; Input).
Output ports: default (any; Output), mailSuccessful (any; mailSuccessful), mailFailed (string; mailFailed), action (any; Action).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
notification | group | null | not declared | Notification Center |
notification.recipients | recipes | null | not declared | Users to send the notification to. |
notification.title | text | null | not declared | Title of the notification. |
notification.message | text | null | not declared | Message of the notification. |
notification.entity | recipes | null | not declared | Entity attachment of the notification. |
notification.type | select | null | not declared | Type of the notification (default: info) Values: info, warning, error. |
notification.icon | text | null | not declared | URL or path to a file entity (file will be publicly accessible after this) |
notification.icon-color | text | null | not declared | Icon Color |
notification.image | text | null | not declared | URL or path to a file entity (file will be publicly accessible after this) |
notification.actions | text | null | not declared | List of actions |
toast | group | null | not declared | Toast |
toast.message | text | null | not declared | Title of the Notification. |
toast.description | text | null | not declared | Message in the Notification. |
toast.type | select | info | not declared | Notification Type. Values: info, success, warning, error. |
toast.duration | number | 4.5 | not declared | Duration until close of Notification in Seconds. If zero it will not close by itself. |
mail | group | null | not declared | |
mail.to | text | null | not declared | Where to send the email to. |
mail.cc | text | null | not declared | Who should receive a copy of the email. |
mail.bcc | text | null | not declared | Who should receive a blind copy of the email. |
mail.from | text | null | not declared | Displayed sender of the email. |
mail.subject | text | null | not declared | Subject of the email. |
mail.attachments | text | null | not declared | Workflow variable pointing to attachment(s). |
sms | group | null | not declared | SMS |
sms.to | workflow-expression | null | not declared | Number to send the SMS to. |
sms.from | workflow-expression | null | not declared | Sender ID to send the number from. |
sms.body | workflow-expression | null | not declared | Message of the SMS. |
action/oauth
Section titled “action/oauth”Starts an OAuth authentication process if no token for the current user, consumer and provider was found, by sending an OAuth initiation response to the client with a checkpoint. If a token is found and not expired, the “token” port is fired with the access token string. If the token is found, but expired, this element tries to fetch a new access token using the stored refresh token.
Input ports: default (any; Input), user (resource; User).
Output ports: token (any; Token), unauthenticated (any; Unauthenticated), error (any; Error).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
provider | select | null | yes (requireOption) | Provider Values: youtube, custom. |
consumer | text | null | not declared | Choose a consumer identifier for this OAuth process. Used to store and retrieve the correct tokens. |
config | recipes | [] | not declared | Config |
sendsCheckpoint | bool | true | not declared | If true, a checkpoint is appended to the return URL after the user returns from OAuth, and this workflow continues if the checkpoint is called at a later time. ( Recommended for Brezel SPA ) If false, the workflow continues immediately after returning from the OAuth provider with a valid token. This option only applies if OAuth needs to authenticate. |
token_url_request_type | select | form | not declared | oAuth RFC (rfc6749) defines that the endpoint body MAY need to be of type application/x-www-form-urlencoded . Values: json, form. |
action/pdfToImage
Section titled “action/pdfToImage”Processes a multi-page PDF into separate JPEG images, one per page.
Input ports: default (any; PDF).
Output ports: each (any; Each), count (any; Count), next (any; End).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
is_count | recipes | null | not declared | isCount |
page_no | recipes | null | not declared | pageNo |
store_pages | bool | null | not declared | storePages |
output_path | recipes | null | not declared | outputPath |
action/print
Section titled “action/print”No help text declared in the source catalog.
Input ports: default (any; Input).
Output ports: default (any; Output).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
printer_name | recipes | null | not declared | The name of the printer as available on the server and seen using ‘lpstat -p’ |
paper_slot | recipes | null | not declared | Paper input to use. As seen in ‘lpoptions -p -l’ as one of the listed ‘InputSlot/Media Source’. E.g. ‘MF1’ |
action/processFile
Section titled “action/processFile”Process File
Input ports: default (any; Input).
Output ports: default (any; Output).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
async | bool | true | not declared | Async |
action/putContents
Section titled “action/putContents”Overwrite the contents of a stored brezel file with some new contents.
Input ports: default (any; Input).
Output ports: default (any; Output).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
contents | text | null | not declared | contents |
action/putSecret
Section titled “action/putSecret”Put a secret into the secret store. Can be scoped to Entity, current User or Client.
Input ports: default (any; Input), entity (resource; Entity).
Output ports: default (any; Output).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
key | text | null | not declared | Key |
value | text | null | not declared | Value |
scope | select | null | not declared | Scope this secret to the current user, client or input entity Values: entity, user, client. |
action/putSession
Section titled “action/putSession”Save a key/value pair to the workflow session.
Input ports: default (any; Input).
Output ports: default (any; Output).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
key | text | null | not declared | Key |
value | text | null | not declared | Value |
action/recalculate
Section titled “action/recalculate”Recalculate recipes of the input entity.
Input ports: default (resource; Input).
Output ports: default (resource; Output).
Options: none.