Open geomagilles opened 9 years ago
when creating a manager with persistence:
var manager = new bpmn.ProcessManager({ persistencyOptions: { uri: "mongodb://127.0.0.1:27017/bpmn" } });
then creating a new task
var client = restify.createJsonClient({url: "http://localhost:9009"}); client.post('/Task');
The new task is not stored in mongodb. It is stored only if you create AND start it:
var client = restify.createJsonClient({url: "http://localhost:9009"}); client.post('/Task/MyStart');
The process is only persisted on waiting tasks. Even after starting it it will be stored in memory until arriving to a waiting task.
when creating a manager with persistence:
then creating a new task
The new task is not stored in mongodb. It is stored only if you create AND start it: