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 = ;const PersistMongoose = ; const 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 = persist: persistMongoose;