Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

bpmn is not defined #1

Open
ettien opened this issue Apr 27, 2019 · 0 comments
Open

bpmn is not defined #1

ettien opened this issue Apr 27, 2019 · 0 comments

Comments

@ettien
Copy link

ettien commented Apr 27, 2019

Hi,After following all the steps I find an error when I test the example as bpmn is not defined. This is my code :

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Hello World</title>

     <script type="text/javascript" src="dist/bpmn.development.js"></script>
     <script type="text/javascript" src="dist/jquery.js"></script>
  </head>
  <body>

    <div id="bpmnview" class="bpmn_view"></div>

    <!-- bpmn properties panel -->

<div class="properties-panel-parent prop_view" id="js-properties-panel"></div>
<script type="text/javascript">

        var modeler;



        function initializeBpmnView(container) {

            var BpmnModule = bpm.getBpmnModule();

            modeler = new BpmnModule.default({

                container: container,

                keyboard: {

                    bindTo: window

                },

                additionalModules: [
					bpmn.getMiniMapModule(),

                    bpm.getColorPickerModule(),

                    bpm.getResizeElementModule(),

                    bpm.getPropertiesPanelModule(),

                    bpm.getPropertiesProviderModule()                   
                ],

                propertiesPanel: {

                    parent: '#js-properties-panel'

                },

                moddleExtensions: {

                    camunda: bpm.getCamundaModdleDescriptorModule()

                }

            })





            createNewBpmn(bpm.getEmptyBpmn());

        }



        function createNewBpmn(xml) {

            modeler.importXML(xml, function (error) {

                if (error) {

                    return;

                }
            });

        }

        $(document).ready(function () {

            initializeBpmnView('#bpmnview');

        });

    </script>
  </body>
</html
```>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant