In server mode, process creation is not persistent
geomagilles opened this issue · 1 comments
geomagilles commented
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');
cyrilschmitt commented
The process is only persisted on waiting tasks. Even after starting it it will be stored in memory until arriving to a waiting task.