BPMN_Projekt/Rechnungseingang/target/process-test-coverage/bower_components/bpmn-js
2020-05-27 17:38:02 +02:00
..
dist nihau 2020-05-27 17:38:02 +02:00
.bower.json nihau 2020-05-27 17:38:02 +02:00
bower.json nihau 2020-05-27 17:38:02 +02:00
LICENSE nihau 2020-05-27 17:38:02 +02:00
README.md nihau 2020-05-27 17:38:02 +02:00

bpmn-js (pre-packaged version)

This is a packaged version of bpmn-js for standalone usage or via bower.

Usage

Download individual files from the dist folder or fetch them with dependencies via bower install bpmn-js.

Include the file(s) into your project

<!-- bpmn-js viewer -->
<script src="bower_components/bpmn-js/dist/bpmn-viewer.js"></script>

<!-- or -->

<!-- bpmn-js modeler -->
<script src="bower_components/bpmn-js/dist/bpmn-modeler.js"></script>

<script>
  // bundle exposes the viewer / modeler via the BpmnJS variable
  var BpmnViewer = window.BpmnJS;

  var xml; // ADD BPMN 2.0 XML HERE
  var viewer = new BpmnViewer({ container: 'body' });

  viewer.importXML(xml, function(err) {

    if (err) {
      console.log('error rendering', err);
    } else {
      console.log('rendered');
    }
  });
</script>

Checkout the examples repository for a complete example of how to use bpmn-js with bower.

License

Use under the terms of the bpmn-js license.