Skip to content

Workflow source elements

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

Run a workflow for each chunk of entities.

Input ports: default (any; Input).

Output ports: default (any; Output).

OptionTypeDefaultRequiredDescription
chunk_sizenumber100yes (requireOption)Number of entities that get processed in one batch.
workflowworkflownullyes (requireOption)The workflow to run for each chunk.
modulemodulenullyes (requireOption)Module
wheretextnullnot declaredWhere
depthtext1not declaredDepth

Get entities from a module. This is the main way you load Entities to use in a workflow. Use filters to narrow down the selection.

Input ports: default (any; Input), ids (any; IDs).

Output ports: default (resource; Output; recipe type {"kind":"conditional","option":"first","whenTruthy":{"kind":"entity","moduleFromOption":"module"},"whenFalsy":{"kind":"collection","of":{"kind":"entity","moduleFromOption":"module"}}}), query (query; Query; recipe type {"kind":"query","moduleFromOption":"module"}).

OptionTypeDefaultRequiredDescription
modulemodulenullyes (requireOption)Module
listItemsfieldnullnot declaredQuery list items (corresponding entity props accessible under “$entity.xyz”)
filtersfilters[]not declaredFilters
withfield[]not declaredLoad related entities. Use dot notation for nested relations.
fieldsfield[]not declaredOnly select and return these fields.
groupByfield[]not declaredGroup the result by the given fields.
orderByfield[]not declaredOrder the result by the given fields.
havingfilters[]not declaredBehaves like SQL having.
limittextnullnot declaredIf either limit or offset is set, the other one has to be set too.
offsettextnullnot declaredIf either limit or offset is set, the other one has to be set too.
firstboolfalsenot declaredOnly return the first entry.
scopeseventnullnot declaredApply scopes and policies to this query. Either trigger existing policies or pass custom created scopes.
permissionsboolfalsenot declaredApply role-based permissions and dynamic policies to this query.
withTrashedboolfalsenot declaredInclude deleted entries in the result.
globalboolfalsenot declaredRetrieve all entries without considering the client
autoDistinctbooltruenot declaredAutomatically add DISTINCT to the query if the fields are not unique (e.g. when using list items).
distinctboolfalsenot declaredOnly select distinct entries. If auto distinct is enabled, this option is ignored.
hydrateRelationsboolfalsenot declaredHydrate relation columns containing dots to relations.
rollupboolfalsenot declaredIf true, add a WITH ROLLUP to the query.

Deprecated - Extract IDs yourself and use source/entities instead! Gets entities from input array.

Input ports: default (any; Input).

Output ports: default (any; Output).

OptionTypeDefaultRequiredDescription
modulemodulenullyes (requireOption)Module

Retrieve a stored secret by key and scope. Scope can be User, Client or any Entity.

Input ports: default (any; Input), entity (resource; Entity).

Output ports: default (any; Output).

OptionTypeDefaultRequiredDescription
keytextnullnot declaredKey
scopeselectnullnot declaredScope this secret to the current user, client or input entity Values: entity, user, client.

Get a workflow session by key.

Input ports: default (any; Input).

Output ports: default (any; Output).

OptionTypeDefaultRequiredDescription
keytextnullnot declaredKey

Creates a new Entity for the given module. Supports setting values with the option ‘values’. If the option ‘client’ is set, the entity will be created for the given client.

Input ports: default (any; Input).

Output ports: default (resource; Output; recipe type {"kind":"entity","moduleFromOption":"module"}).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule
valuestextnullnot declaredvalues
clientclientnullnot declaredclient

Gets a stored OAuth token for the given user and provider. If the token is expired, the ‘expired’ port is triggered.

Input ports: default (any; Input), user (resource; User).

Output ports: token (any; Token), notFound (any; Not Found), expired (any; Expired).

OptionTypeDefaultRequiredDescription
providerselectnullnot declaredProvider Values: youtube, custom.
consumertextnullnot declaredThe consumer identifier of your specific OAuth process. This should correspond to the consumer that was chosen in action/oauth.

Finds a View by the name of `value` in the defined views module and renders it. If no View is found, the option ‘value’ is returned.

Input ports: default (any; Input).

Output ports: default (any; Output).

OptionTypeDefaultRequiredDescription
view_moduletextviewsnot declaredView Module
valuetext“not declaredName

Materializes a view with the given data and renders it. Ports: ViewResource (eg. from source/resource) If the input is a view the option filename will be ignored. If it is not a View the this will be the $resource available in the View. Options: Filename (optional)

Input ports: default (any; Input), view (resource; View), data (any; Data).

Output ports: default (any; Output).

OptionTypeDefaultRequiredDescription
view_nameentity“not declaredView
datarecipes[]not declaredData

DEPRECATED Use source/entities instead. Get resources/Entities from a module.

Input ports: default (any; Input).

Output ports: default (resource; Output; recipe type {"kind":"conditional","option":"first","whenTruthy":{"kind":"entity","moduleFromOption":"module"},"whenFalsy":{"kind":"collection","of":{"kind":"entity","moduleFromOption":"module"}}}).

OptionTypeDefaultRequiredDescription
modulemodulenullnot declaredModule
firstboolfalsenot declaredFirst
latestboolfalsenot declaredLatest
wherefilters[]not declaredWhere
depthtext1not declaredDepth
orderBytextnullnot declaredOrder by

Get the current User that triggered the workflow.

Input ports: default (any; Input).

Output ports: default (any; Output).

Options: none.