Workflow flow elements
Generated from brezel/api@ddd04f543e0fecc433a351dcaab24d39087b24be — do not edit by hand.
flow/can
Section titled “flow/can”This element checks whether a user can perform certain actions on a given entity.
Input ports: default (any; default), user (any; user).
Output ports: default (bool; Result), true (any; Can), false (any; Cannot).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
user | recipes | null | not declared | User |
actions | select | null | not declared | The actions to check for. If one of the actions is not allowed, the result will be false. Values: create, read, update, delete. |
flow/checkpoint
Section titled “flow/checkpoint”Create a checkpoint in the workflow that can be resumed later. This element can be used to generate a URL that can be called later to resume the workflow.
Input ports: default (any; Input).
Output ports: default (any; Link; runnable), id (any; Id; runnable), continue (any; Continue; runnable).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
link_mode | select | null | not declared | Set link generating behavior. Values: referer, api. |
back_to_referer | bool | null | not declared | Redirect to the original referer after completion of the continue flow. |
flow/each
Section titled “flow/each”This Element runs the each port for each item in the input.
Input ports: default (any; Input).
Output ports: each (any; Each), index (any; Index), next (any; End).
Options: none.
flow/empty
Section titled “flow/empty”This Element runs the Empty port if the input is empty.
Input ports: default (any; Input).
Output ports: default (any; Empty), else (any; Not empty).
Options: none.
flow/hasRoles
Section titled “flow/hasRoles”This Element checks if the user that triggered the current workflow run has the given roles.
Input ports: default (any; default).
Output ports: default (bool; Result), true (any; True), false (any; False).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
roles | text | null | not declared | The roles to check for. |
slug | bool | true | not declared | If true, the roles provided above are treated as slugs, otherwise as names. |
flow/if
Section titled “flow/if”This Element runs the true port if the recipe given as the condition is true, otherwise the false port.
Input ports: default (any; default).
Output ports: default (any; true), else (any; false).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
condition | recipes | null | not declared | Condition |
flow/try
Section titled “flow/try”This Element runs the Catch port on a Exception. The Exception will be set as the output.
Input ports: default (any; default).
Output ports: default (any; Try), catch (any; Catch).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
logLevel | select | nothing | not declared | Log Values: nothing, message, everything. |