View on GitHub

flowed

A fast and reliable flow engine for orchestration and more uses in Node.js, Deno and the browser

Flowed Built-In resolver library

Resolvers

◂ Back

Noop

Does nothing.

Useful to set tasks dependencies without executing anything.

name: flowed::Noop

params: None

results: None


Echo

Returns the input value or its transformation as the result.

Useful to apply transformations of multiple parameters into others, without executing any specific task.

name: flowed::Echo

params:

results:


ThrowError

Throws an error with a specified message.

Useful to stop a flow execution with a specific error, under a given condition.

name: flowed::ThrowError

params:

results: None


Conditional

Provides one of two possible results depending of a given condition.

Useful to run different parts of a flow, depending on conditions calculated for other tasks or passed as parameters.

name: flowed::Conditional

params:

results:


Wait

Waits for ms milliseconds and finish returning the specified result.

Useful to implement timeouts and timers.

name: flowed::Wait

params:

results:


SubFlow

Runs a flow using the specification and arguments provided as parameter.

Note that the context is not passed as parameter because it is shared from the outside flow.

Useful to enclose a sub-flow execution with a flow spec given as entry.

name: flowed::SubFlow

params:

results:


Repeater

Runs a task multiple times and finishes returning an array with all results.

If one execution fails, the resolver ends with an exception (in both parallel and not parallel modes).

Useful to repeat the same task a number of times, in a for-loop like way.

name: flowed::Repeater

params:

results:


ArrayMap

Runs a task multiple times taking an array of parameter groups. For each parameter group in the array, the task is run once, collecting the results in the same order in the results array. The task instances can be run in parallel or in sequence. In both cases the order in the results will be the same as the corresponding in the params parameter.

Useful to implement the Array.prototype.map() logic in a flow.

name: flowed::ArrayMap

params:

results:


Stop

Initiates the stop operation of the flow. When the returned promise is resolved, the flow has been stopped.

Useful to stop a running flow without error, under certain conditions.

name: flowed::Stop

params: None

results:


Pause

Initiates the pause operation of the flow. When the returned promise is resolved, the flow has been paused. A paused flow can be resumed later.

Useful to pause a running flow under certain conditions.

name: flowed::Pause

params: None

results: