Open chevdor opened 9 years ago
You can use modules "path"
like this:
var bpmn = require('bpmn');
var path = require('path');
bpmn.createUnmanagedProcess(path.join(__dirname, '../bpmn/myProcess.bpmn'), function (err, myProcess) {
myProcess.triggerEvent("MyStart");
});
Provide a absolutely path
in the current working directory.
Try path.resolve
, that's cooler anyway.
If only a filename is provided, cannot we use the called entry point script location as root?