bpm-engine-persist-mongoose

1.1.13 • Public • Published

bpm-engine-persist-mongoose

Persistency module to save all engine state in a MongoDB database.

Installation

$ npm install bpm-engine-persist-mongoose --save

Usage

Example of how to use PersistMongoose when instantiating a BPMEngine Instance.

const BPMEngine = require('bpm-engine');
const PersistMongoose = require('bpm-engine-persist-mongoose');
 
const persistMongoose = new PersistMongoose(
  {
    host: '<server host>',
    port: '<server port number>'
  },
  {
    /* mongoose connection options */
  },
  {
    processInstance: 'PI',
    tokenInstance: 'TI'
  }
);
 
// Third argument is optional and can be used to define different collection names which
// you'd like BPMEngine to use, by default its always bpmengine_processinstances and bpmengine_tokeninstances.
 
const engine = new BPMEngine({
  persist: persistMongoose
});

/bpm-engine-persist-mongoose/

    Package Sidebar

    Install

    npm i bpm-engine-persist-mongoose

    Weekly Downloads

    2

    Version

    1.1.13

    License

    none

    Unpacked Size

    56.6 kB

    Total Files

    21

    Last publish

    Collaborators

    • beist