Reference
Built-in workflow nodes
The node types every workflow can use, with their inputs and outputs.
Every workflow can use these nodes. They act with full access, and their changes are recorded as made by
workflow:<name>.
| Node | Id | Inputs | Outputs |
|---|---|---|---|
| Get entity | omnicore.get-entity | id | found, id, perspectives, fields |
| Find entities | omnicore.find-entities | perspective, where, take | count, first, ids |
| Create entity | omnicore.create-entity | perspective, fields | id |
| Update entity | omnicore.update-entity | id, fields | version |
| Add perspective | omnicore.add-perspective | id, perspective, fields | — |
| Delete entity | omnicore.delete-entity | id | deleted |
| Set values | omnicore.set-values | values | values |
| Write to log | omnicore.log | message | — |
| Fail | omnicore.fail | message | — |
Using them
wheretakes a filter in the query language.fieldsandvaluesare JSON objects whose text can use placeholders:{ "status": "Approved", "total": "{{input.amount}}" }.- Set values is for working values: its
valuesoutput holds what you set, so later nodes can read{{check.values.total}}. - Find entities gives the first match's id as
firstand all of them asids({{find.ids.0}}is the first). - Fail ends the run as failed, with the message.
Examples
Mark an order approved when it's added and small enough:
| Node | Settings |
|---|---|
check (Set values) | values: { "total": "{{input.after.orderTotal}}" } |
approve (Update entity) | id: {{input.entityId}}, fields: { "status": "Approved" } |
With connections: start → check; check → approve if check.values.total <= 1000; check → end (else);
approve → end.
Your own nodes
Packages add more, under their own categories. See Writing workflow nodes.