Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add elementTemplates.createElement API for Camunda Platform #607

Open
pinussilvestrus opened this issue Mar 11, 2022 · 0 comments
Open

Add elementTemplates.createElement API for Camunda Platform #607

pinussilvestrus opened this issue Mar 11, 2022 · 0 comments
Labels
backlog Queued in backlog Camunda Platform element templates enhancement New feature or request spring cleaning Could be cleaned up one day

Comments

@pinussilvestrus
Copy link
Contributor

Is your feature request related to a problem? Please describe

This is a follow-up action of #582. It should be possible to do the same with the Camunda Platform element-templates feature.

const elementTemplates = modeler.get('elementTemplates');
const create = modeler.get('create');

const element = elementTemplates.createElement(template);
create.start(canvasEvent({ x: 250, y: 300 }), element);

Describe the solution you'd like

Offer the same API for the Camunda Platform element templates. That could be achieved similarly by providing a TemplateElementFactory, offering providers for each binding.

Describe alternatives you've considered

Simply build on top of the existing update template command. This comes with unexpected commands fired when using a base factory command.

Additional context

Related to #582

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog Camunda Platform element templates enhancement New feature or request spring cleaning Could be cleaned up one day
Projects
None yet
Development

No branches or pull requests

1 participant