Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createUnmanagedProcess tries to load the .js from folder releative from handler.js in Node_Modules #41

Open
Geraldf opened this issue Dec 17, 2016 · 1 comment

Comments

@Geraldf
Copy link

Geraldf commented Dec 17, 2016

When I try to load a process wiht

var path = require("path");
bpmn.createUnmanagedProcess("./plan/myDiag.bpmn", function (err, myProcess) {
    // we start the process
    myProcess.triggerEvent("MyStart");
});

the handler.js file tries to load the associated .js file (myDiag.js) from the location the handler.js file is located. in my example the handler.js file is ...../node_modules/bpmn/lib/handler.js, which is not the same folder in which my myDiag.bpmn file is located.

@cyrilschmitt
Copy link
Member

Hello Geraldf,

You need to give a fullpath instead of a relative one and it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants