e2ebridge / bpmn

BPMN 2.0 execution engine
467 stars 138 forks source link

In server mode, process creation is not persistent #10

Open geomagilles opened 9 years ago

geomagilles commented 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');
cyrilschmitt commented 9 years ago

The process is only persisted on waiting tasks. Even after starting it it will be stored in memory until arriving to a waiting task.