question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to add element template to custom bower bpmn js project ?

See original GitHub issue

we are trying to add element template into below custom bower project using code from here https://forum.bpmn.io/t/element-templates-usage-in-property-panel/809/3 we could not achieve element template with this documentation. If we can get some detail help on this issue it would be great ?

index.js

`var BpmnViewer = require('bpmn-js/lib/Modeler');
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')
];
BpmnViewer.prototype._modules = BpmnViewer.prototype._modules.concat(additionalModules);
// 2. include camunda moddle descriptor
BpmnViewer.prototype._moddleExtensions = { camunda: camundaModdleDescriptor }
module.exports = BpmnViewer;`

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
nikkucommented, Oct 19, 2016

You cannot use element templates with the BpmnViewer (it is a diagram viewer). Use the BpmnModeler instead.

If you got more questions, please open a respective topic in the bpmn.io forum.

0reactions
preetvyascommented, Dec 29, 2020

i follow this process this.modeler = new Modeler({ container: ‘#canvas’, width: ‘100%’, height: ‘600px’, propertiesPanel: { parent: ‘#properties’ }, additionalModules: [ propertiesPanelModule, propertiesProviderModule, ReplaceMenuProvider, customTranslateModule ], elementTemplates:botdetails.botdetails, moddleExtensions: { camunda: camunda.camunda } }); and i am able to set element templates but after set element templates when we click on task and based on that task need filter accordingly so element templates will display anybody tell me how can i acheive this thing

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add element template to custom bower bundle?
I have created custom bower bundle using bpmn-js library , everything is working great except element template. we added json file as ...
Read more >
How to add element template to custom bower bpmn js project
we are trying to add element template into below custom bower project using code from here ...
Read more >
@bpmn-io/element-templates-icons-renderer - NPM Package ...
Use in your bpmn-js powered editor: import ElementTemplatesIconsRenderer from '@bpmn-io/element-templates-icons-renderer'; const viewer = new ...
Read more >
How to use the bpmn-js/lib/Viewer.prototype function in ... - Snyk
To help you get started, we've selected a few bpmn-js/lib/Viewer.prototype examples, based on popular ways it is used in public projects.
Read more >
bpmn-js-connectors-extension | Yarn - Package Manager
bpmn -js-connectors-extension. CI. This module extends bpmn-js with an element templates everywhere modeling experience.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found