How to run bpmn-js-examples-master samples


Can any one please tell how to run samples given in the Git.

There is a file Gruntfile .

Should we run this . Can any one please advise on this ,

Thanks in advance

Hi @manoj,

which specific example do you mean and what do you want to achieve?

Hi Pedesen,

Thank you very much for your reply.

I am trying to run “simple-bower” and like to see how bpmn-js works . When I run the command “node app.js” I am getting the error:

ReferenceError: window is not defined
** at Object. (C:\Users\DevIN\Desktop\s-e-v-i-\node_modules\snapsvg**
_** at Module.compile (module.js:413:34)**
_** at Object.Module.extensions…js (module.js:422:10)**
** at Module.load (module.js:357:32)**
_** at Function.Module.load (module.js:314:12)**
** at Module.require (module.js:367:17)**
** at require (internal/module.js:16:19)**
** at Object. (C:\Users\DevIN\Desktop\s-e-v-i-\node_modules\diagram-**
_** at Module.compile (module.js:413:34)**
_** at Object.Module.extensions…js (module.js:422:10)**

Please help me in figuring out where I am wrong as I am new to this.

Thanks in advance.


the simple-bower example is not meant to be run as a node application.

You could try our common-js Example (it is well documented in the Readme).

If you really want to start a project using bower, please consult the Readme and get familiar with bower first.

Hi Pedesen

Thanks for your reply.

I am looking for a web based workflow modeling sample . Can you please guide me how to implement this with bpmn -js.

Thanks in advance

Please check this example.


Hi Pedesan/Vladimir

Thanks for the answers.

I could now able to continue with the examples.

Once again thanks for your kind help.