Skip to content

Workflow op elements — part 1

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

Effectively a dynamic op/push on an entity field. Give it an entity and a field identifier along with a value to add into that field. If the field is a multiselect, it will add that value to it. You can even define the field identifier based on a variable so that you can change which multiselect a value is added to dynamically. For any other field type, only the chosen one knows what will happen. Use at your own risk for anything other than a multiselect.

Input ports: default (any; Input).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).

OptionTypeDefaultRequiredDescription
fieldrecipesnullnot declaredField Identifier
valuerecipesnullnot declaredValue

Adds a new empty item to a list field of the Entity in the input.

Input ports: default (any; Input).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).

OptionTypeDefaultRequiredDescription
listfieldnullnot declaredThe list field to add a new item to.

Adds a number of empty items to a list field of an Entity.

Input ports: default (any; Input).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).

OptionTypeDefaultRequiredDescription
listtextnullnot declaredIdentifier of the list field to add empty items to.
numbernumber1not declaredNumber of empty items to create.

This Element generates the Base64 content for a file object.

Input ports: default (any; Input), file (any; File).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).

Options: none.

Counts the elements in the input.

Input ports: default (any; Input).

Output ports: default (any; Output; recipe type {"kind":"scalar","name":"int"}).

Options: none.

Calculate the difference between two arrays, collections or Entities. CAREFUL: This behaves differently when using Entities compared to arrays or collections. Only when comparing Arrays/Collections will the special out ports be used.

Input ports: default (any; Input), dataForDiff (any; dataForDiff), old (any; old), new (any; new).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}), new (any; new), removed (any; removed), changedNew (any; changedNew), changedOld (any; changedOld).

Options: none.

Returns a collection without the entities provided in exceptEntities.

Input ports: default (any; Input), exceptEntities (any; Except entities).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).

Options: none.

Checks if a given value exists in a array. The attribute option can be used to set the key if the array is filled with objects.

Input ports: default (any; Input), array (any; Array), value (any; Value), attribute (any; Attribute).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}), else (any; Else).

Options: none.

Filter a given collection or Array by a recipe function.

Input ports: default (any; Input).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).

OptionTypeDefaultRequiredDescription
filterrecipesnullnot declaredFilter

Get the first element of a collection or Array.

Input ports: default (any; Input).

Output ports: default (any; Output; recipe type {"kind":"item","of":{"kind":"input","port":"default"}}).

Options: none.

Flatten the input collection or array. Returns a one-dimensional array.

Input ports: default (any; Input).

Output ports: default (any; Output; recipe type {"kind":"flatten","of":{"kind":"input","port":"default"}}).

Options: none.

Get element from list/array/collection by key. Performs a data_get operation on the input according to the key.

Input ports: default (any; Input), key (string; Key).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).

Options: none.

Retrieves OCR Data for a file. Might be empty if the asynchronous OCR process has not been finished yet.

Input ports: default (any; Input).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).

Options: none.

Group a collection or Array by a key.

Input ports: default (any; Input).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).

OptionTypeDefaultRequiredDescription
bytextnullyes (requireOption)The key to group by.

Hide attributes of an Entity instance.

Input ports: default (any; Input).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).

Options: none.

Performs a join operation on two collections or Arrays.

Input ports: first (any; First), second (any; Second).

Output ports: default (any; Output).

OptionTypeDefaultRequiredDescription
typeselectinnernot declaredType Values: inner, left, right, full.
conditionsfilters[]not declaredConditions

Turns a single or multiple entities into a JSON resource and can respect the permissions of a (different) user.

Input ports: default (any; Input).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).

OptionTypeDefaultRequiredDescription
userentitynullnot declaredUser
withModulebooltruenot declaredWith module

Get the last element of a collection or Array.

Input ports: default (any; Input).

Output ports: default (any; Output; recipe type {"kind":"item","of":{"kind":"input","port":"default"}}).

Options: none.

Load relations and lists for entities.

Input ports: default (resource; Entity(s)).

Output ports: default (resource; Entity(s)).

OptionTypeDefaultRequiredDescription
fieldsfield[]yes (requireOption)Fields to load (comma-separated).
allboolnullnot declaredLoad all fields (relations and lists).

Merge two arrays.

Input ports: default (any; Input), array1 (unspecified; Array 1), array2 (unspecified; Array 2).

Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).

Options: none.