Skip to content

Workflow flow elements

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

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

OptionTypeDefaultRequiredDescription
userrecipesnullnot declaredUser
actionsselectnullnot declaredThe actions to check for. If one of the actions is not allowed, the result will be false. Values: create, read, update, delete.

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

OptionTypeDefaultRequiredDescription
link_modeselectnullnot declaredSet link generating behavior. Values: referer, api.
back_to_refererboolnullnot declaredRedirect to the original referer after completion of the continue flow.

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.

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.

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

OptionTypeDefaultRequiredDescription
rolestextnullnot declaredThe roles to check for.
slugbooltruenot declaredIf true, the roles provided above are treated as slugs, otherwise as names.

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

OptionTypeDefaultRequiredDescription
conditionrecipesnullnot declaredCondition

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

OptionTypeDefaultRequiredDescription
logLevelselectnothingnot declaredLog Values: nothing, message, everything.