Word

flow

Work that is saved step by step, so that it waits, is tried again and goes on after a restart.

Example

TypeScript
export const tidy = flow('tidy', {
  run: async ({ input, step }) => {
    await step('count', () => countNotes())
    return { team: input.team }
  },
})

Options

OptionMeans
option.flow.runThe function of the flow, which is run from its top on every pass.
option.flow.onWhat starts the flow.
option.flow.keyWhat a run is about, by which a start joins it and an event stops it.
option.flow.stopOnThe events that stop the runs of a key.
option.flow.paceHow a burst of starts waits, is gathered or is dropped, for each key.
option.flow.sealedSeals what every step of the flow saves.
option.flow.aboutOne sentence on what the flow is for.
option.flow.inputThe fields that a start gives.
option.flow.outputThe type of the answer of the flow.
option.flow.limitsThe limits of a run.
option.flow.triesHow often a step is tried in all.
option.flow.togetherHow many runs of the flow may work at once.
option.flow.moveRunsWhether a waiting run is moved to a new version.
option.flow.onFailWhat is carried out when a run fails for good.
option.flow.onStopWhat is carried out when a run is stopped, to take back what was half done.
option.flow.asWhose rights a run has.
option.flow.dangerWhether the flow, used as a tool, asks a person first.
option.flow.offerThe outside doors the flow is offered to.
option.flow.accessWho may call the flow through the door.
option.flow.systemThe reason why an offered flow has full access.
option.flow.sendsWhether the flow sends data out.
option.flow.followWho may follow the runs of the flow from a page.
option.flow.countByFor whom the runs of the flow are counted.
option.flow.plainHolds the flow to the plain form.
option.flow.wasThe old name of the flow, where it was renamed.

Returns

In an action, a route or a step, a function that starts a run, waits for it and answers the flow's answer. A flow that states follow also gives the member working.

Errors

code.T0010: it was called with no engine: nothing stands in the runtime slot.

See also

topic.words, word.start