@honeybpm/mongoose-dataservice
v0.2.1
Published
A DatabaseService using a mongo collection for hbpm
Downloads
3
Readme
HBPM DatabaseService Mongoose
This module is a DatabasseService for use with HoneyBPM
Use
const hbpm = require('honeybpm');
// grab the DatabaseService
const DatabaseService = require('hbpm-databaseservice-mongoose').DatabaseService;
// Pass the DatabaseService into a process model
let processModel = new hbpm.ProcessModel({
DatabaseService: DatabaseService,
name: "ExampleProcessModel",
steps: [...]
});
Connecting to a Database
Also comes with a quick mongoose connection function
const mongooseConnect = require('hbpm-databaseservice-mongoose').connect;
mongooseConnect("MONGO_URI");