Automate the work around your data

A workflow is a graph of nodes, started by a trigger: a person pressing Run, a change to an entity, or a schedule. Draw it on the maker site, and add your own nodes in C#.

Conditions on connections

After each node, the run follows the first of its connections whose condition holds, in the order listed; a connection without a condition is the else. Conditions use the same operators as the query language, over the run's values: check.values.total > 1000 & input.vip.

Node settings use values from earlier nodes as {{check.values.total}}. The designer offers only the values that can exist at that point, and the server checks it again on save.

The workflow designer: node types on the left, the graph with its numbered conditions, and the trigger's settings.
The workflow designer
The workflow designer: node types on the left, the graph with its numbered conditions, and the trigger's settings.

The workflow designer: node types on the left, the graph with its numbered conditions, and the trigger's settings.

Every run recorded

Each run keeps every step: the inputs as they were filled in, the outputs, the log, any error and the connection taken. Choose a run and its path lights up on the graph.

A workflowWhen an order is added, get its customer. If the total is over 1000, notify a buyer; otherwise set the order's status. Both paths end.Order addedtriggerGet customerget-entityNotify buyeracme.notify-buyerSet statusupdate-entitytotal > 1000else
A workflow's runs. The chosen run's path is highlighted on the graph.
A workflow's runs
A workflow's runs. The chosen run's path is highlighted on the graph.

A workflow's runs. The chosen run's path is highlighted on the graph.

Three ways to start

Manual

A person (or a call to the API) starts it with declared inputs, checked by type.

An entity change

When an entity of a perspective is added, updated (optionally only when certain fields change) or deleted, with its values before and after.

A schedule

A five-field cron expression in UTC, checked every minute.

Your own nodes, in C#

A node is a method marked [WorkflowNode]. Its parameters are its inputs, and what it returns is its outputs. Build the project and you get an .opl file to upload; the nodes then appear in the designer under their category.

Writing workflow nodes →
[WorkflowNode("acme.vat", "Add VAT", Category = "Finance")]
public static Totals AddVat(decimal net, decimal rate = 0.15m)
    => new(net, net * rate, net * (1 + rate));

Built to be trusted

Checked before it runs

No cycles, every node reachable, every value a setting reads available at that point. A workflow with problems doesn't run.

Every run recorded

Each step's inputs as filled in, its outputs, its log, any error and the connection taken. The designer highlights a run's path on the graph.

Bounded

Four workers, 60 seconds per node, and changes made by workflows fire plugins and workflows only to a limited depth, so they can't loop forever.

Attributed

Changes made by a workflow are recorded as workflow:<name>, so you can tell them from people's.

Read more