# How we can use drag n drop service for diagram using bower bundle bpmn-js?

**URL:** <https://forum.bpmn.io/t/how-we-can-use-drag-n-drop-service-for-diagram-using-bower-bundle-bpmn-js/1519>\
**Category:** Modeler\
**Created:** [May 9, 2017, 6:43pm UTC](https://forum.bpmn.io/t/how-we-can-use-drag-n-drop-service-for-diagram-using-bower-bundle-bpmn-js/1519 "2017-05-09T18:43:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![syedhussain](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/s/4af34b/32.png) [@syedhussain](https://forum.bpmn.io/u/syedhussain)\
**Post date:** [May 9, 2017, 6:43pm UTC](https://forum.bpmn.io/t/how-we-can-use-drag-n-drop-service-for-diagram-using-bower-bundle-bpmn-js/1519/1 "2017-05-09T18:43:57Z")

</div>

I am trying to invoke `Dragging` capability from `bmpn-viewer-custom.js` but i see error `Error: No provider for "Dragging"! (Resolving: Dragging) it pops up this error when I use drag function` Can someone please help on this how we can achieve drag n drop using bower bundle ?

angularClientCtrl.js

```
var BpmnViewer = window.BpmnJS;

    var bpmnModeler = new BpmnViewer({
      container: '#canvas',
      propertiesPanel:{
        parent: '#js-properties-panel'
      },
        elementTemplates: elementTemplates
    });

$scope.dragDiagram= function(){
        bpmnModeler.get('Dragging').start();
    }
```

---

<div class="post-metadata">

**Author:** ![nikku](https://forum.bpmn.io/user_avatar/forum.bpmn.io/nikku/32/5130_2.png) [@nikku](https://forum.bpmn.io/u/nikku)\
**Post date:** [May 10, 2017, 2:34pm UTC](https://forum.bpmn.io/t/how-we-can-use-drag-n-drop-service-for-diagram-using-bower-bundle-bpmn-js/1519/2 "2017-05-10T14:34:15Z")

</div>

The `Viewer` does not contain the dragging functionality.

You may bundle it yourself [in a custom bower bundle](https://github.com/bpmn-io/bpmn-js-examples/tree/master/custom-bower-bundle).

Coordinates of the `Dragging` service and module: [`diagram-js/lib/features/dragging`](https://github.com/bpmn-io/diagram-js/tree/master/lib/features/dragging).

---

<div class="post-metadata">

**Author:** ![syedhussain](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/s/4af34b/32.png) [@syedhussain](https://forum.bpmn.io/u/syedhussain)\
**Post date:** [May 10, 2017, 8:02pm UTC](https://forum.bpmn.io/t/how-we-can-use-drag-n-drop-service-for-diagram-using-bower-bundle-bpmn-js/1519/3 "2017-05-10T20:02:08Z")

</div>

Thanks for your quick response, we have added dragging module as you can see below we are still not able to invoke `Dragging` module , can you please provide some example or hint how to use `Dragging` module in custom.js and client side.

index.js

```
var camundaModdleDescriptor = require('camunda-bpmn-moddle/resources/camunda');

var additionalModules = [
  require('bpmn-js-properties-panel'),

  // 1. require camunda provider instead of the bpmn one (!)
  require('bpmn-js-properties-panel/lib/provider/camunda'),
  require('diagram-js/lib/features/dragging')
];

BpmnViewer.prototype._modules = BpmnViewer.prototype._modules.concat(additionalModules);

// 2. include camunda moddle descriptor
BpmnViewer.prototype._moddleExtensions = { camunda: camundaModdleDescriptor };
//BpmnViewer.prototype.elementTemplates = { camunda: elementTemplates };

```

clientCtrl.js

```
$scope.startDrag = function(){
   bpmnModeler.get('Dragging').start();
}
```

---

<div class="post-metadata">

**Author:** ![nikku](https://forum.bpmn.io/user_avatar/forum.bpmn.io/nikku/32/5130_2.png) [@nikku](https://forum.bpmn.io/u/nikku)\
**Post date:** [May 15, 2017, 9:02pm UTC](https://forum.bpmn.io/t/how-we-can-use-drag-n-drop-service-for-diagram-using-bower-bundle-bpmn-js/1519/4 "2017-05-15T21:02:01Z")

</div>

The dragging service instance is published with the name `dragging`.

Lower + camel case is the naming convention for service names.

---

<div class="post-metadata">

**Author:** ![SimonSteinruecken](https://forum.bpmn.io/user_avatar/forum.bpmn.io/simonsteinruecken/32/6531_2.png) [@SimonSteinruecken](https://forum.bpmn.io/u/SimonSteinruecken)\
**Post date:** [July 15, 2025, 10:32am UTC](https://forum.bpmn.io/t/how-we-can-use-drag-n-drop-service-for-diagram-using-bower-bundle-bpmn-js/1519/5 "2025-07-15T10:32:11Z")

</div>

Closed on July 15, 2025, 10:32am UTC


