States · moves · rules
Business processes that know where they are
Declare a node type's process once. Its … menu then offers exactly the moves whose business rules hold, and every move is checked again on the server and recorded.

Process

Business processes as state machines, in a fluent language.

A node type declares its states and its moves. Each move carries the business rules it requires, and its pre- and post-processing:

Process.Of<Deal>("Sales")
    .StateOf(d => d.Status, (d, s, today) => d with { Status = s })
    .States("Received", "Quoted", "Bound", "Declined").Initial("Received").Terminal("Bound", "Declined")
    .Move("quote", "Send the offer", ["Received"], "Quoted")
        .Requires("PRICED", "The deal is priced", c => c.Content.Priced)
        .After((c, d) => d with { QuotedOn = c.Today })
    .Move("decline", "Decline", ["Received", "Quoted"], "Declined").Asks(nameof(ProcessInput.Reason)).Closing()
    .Build();

What ships

Contents

Where to start

Reconnecting…
The connection to the server was interrupted. Trying to restore it…
Trying again…
The connection could not be restored. Reloading the page…
The server was updated. Reloading the page to pick up the latest version.