0.1.13 • Published 2 years ago

@clausehq/flows-engine v0.1.13

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
2 years ago

Flow engine

This is a generic flow execution enginee.

The engine is parameterized with a set of transforms and types.

Transforms and types need to have the right structure (npm packages exporting an object with the proper fields).

The engine can be instantiated with:

const engine = require('@clausehq/core-flows');
const registry = {
  transforms: [
    { name: <TRANSFORM_NAME>, package: <TRANSFORM_PATH> },
    ...
  ],
  types: [
    { name: <TYPE_NAME>, package: <TYPE_PATH> },
    ...
  ],
};
const myEngine = engine(registry);

The flow engine API allows you to invoke a flow:

const result = myEngine.invoke(flow, context, request);

Where:

  • flow is the flow (ALMOST! it still has a few bits pre-hydrated, but very close now)
  • context is the invokation context (e.g., secrets, previous steps etc)
  • request is the input of the flow
0.1.13

2 years ago

0.1.11

3 years ago

0.2.0-alpha.7

3 years ago

0.2.0-alpha.6

3 years ago

0.2.0-alpha.2

3 years ago

0.2.0-alpha.1

3 years ago

0.2.0-alpha.5

3 years ago

0.1.10

3 years ago

0.1.2

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago