Workflow op elements — part 2
Generated from brezel/api@ddd04f543e0fecc433a351dcaab24d39087b24be — do not edit by hand.
op/mergeFiles
Section titled “op/mergeFiles”Merge either PDFs into one or ZIPs into one.
Input ports: default (any; Input).
Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}), error (any; Error).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
filename | text | null | not declared | Filename |
virtual_path | text | null | not declared | Virtual Path |
use_clear_name | bool | false | not declared | If true, uses the provided Filename as the actual name for the file on disk. Make sure you de-duplicate, or you will cause data loss due to overwriting! |
type | select | null | yes (requireOption) | Type Values: pdf, zip. |
flat | bool | null | not declared | Flat |
op/moduleIdentifier
Section titled “op/moduleIdentifier”Returns the identifier of the module the given Entity in the Input belongs to.
Input ports: default (resource; default).
Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).
Options: none.
op/nop
Section titled “op/nop”Do nothing. Just pass input to output.
Input ports: default (any; Input).
Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).
Options: none.
op/pluck
Section titled “op/pluck”Get the value for a field from an entity or collection/array of entities.
Input ports: default (any; Input).
Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
field | text | null | not declared | Field |
op/protectFields
Section titled “op/protectFields”Add fields by identifier to protected fields on this Entity instance.
Input ports: default (any; Input), fields (any; fields).
Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).
Options: none.
op/push
Section titled “op/push”Push something to an array.
Input ports: default (any; Input), array (any; Array), item (any; Item).
Output ports: default (any; Output; recipe type {"kind":"input","port":"array"}).
Options: none.
op/recipe
Section titled “op/recipe”Applies arbitrary recipe to input. This is the most powerful operator, as it can do anything a recipe can do. When in doubt, use it as it is the closest to “programming” you can do with a workflow.
Input ports: default (any; Input).
Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
recipe | recipes | null | yes (requireOption) | Recipe |
op/selector
Section titled “op/selector”Filters the input array using a JSONPath selector.
Input ports: default (any; Input), selector (string; Selector).
Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
selector | text | null | not declared | Selector |
first | bool | false | not declared | First |
op/set
Section titled “op/set”Sets values on the input.
Input ports: default (any; Input).
Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
copy | workflow-expression | null | not declared | Workflow variable pointing to an object to copy fields from. |
recipes | recipes | [] | not declared | Set field values using recipes. |
values | workflow-expression | [] | not declared | Set field values to constants or workflow expressions (e.g. variables). |
process | bool | false | not declared | If selected, the values and recipes are treated as request or user data and are immediately post-processed upon being set. This includes hashing of password fields, for instance. |
op/sort
Section titled “op/sort”Sorts the input array.
Input ports: default (any; Input).
Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
recipe | recipes | null | not declared | Sort Function |
key | field | null | not declared | Sort Key |
op/strReplace
Section titled “op/strReplace”Apply a string replace operation.
Input ports: default (any; Input).
Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
text | text | “ | not declared | Haystack |
search | text | “ | not declared | Needle |
fill | text | “ | not declared | Replace |
op/unique
Section titled “op/unique”Returns only unique values from the input.
Input ports: default (any; Input).
Output ports: default (any; Output; recipe type {"kind":"input","port":"default"}).
| Option | Type | Default | Required | Description |
|---|---|---|---|---|
attribute | text | null | not declared | Attribute |