workflow-es-mongodb
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

MongoDB Persistence provider for Workflow ES

Provides support to persist workflows running on Workflow ES to a MongoDB database.

Installing

Install the npm package "workflow-es-mongodb"

> npm install workflow-es-mongodb --save

Usage

Use the .usePersistence() method when setting up your workflow host.

const workflow_es = require("workflow-es");
const workflow_mongo = require("workflow-es-mongodb");
...
var config = workflow_es.configureWorkflow();
let mongoPersistence = new workflow_mongo.MongoDBPersistence("mongodb://127.0.0.1:27017/workflow-node");
await mongoPersistence.connect;    
config.usePersistence(mongoPersistence);
var host = config.getHost();
...
await host.start();

Readme

Keywords

Package Sidebar

Install

npm i workflow-es-mongodb

Weekly Downloads

5

Version

2.1.2

License

MIT

Unpacked Size

96.8 kB

Total Files

37

Last publish

Collaborators

  • danielgerlag