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 for Camunda Cloud #605

Merged
merged 2 commits into from
Mar 14, 2022

Conversation

pinussilvestrus
Copy link
Contributor

@pinussilvestrus pinussilvestrus commented Mar 11, 2022

This adds a basic createElement API to create elements out of a template descriptor.

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

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

Kapture 2022-03-03 at 14 15 24


Closes #582

@bpmn-io-tasks bpmn-io-tasks bot added the in progress Currently worked on label Mar 11, 2022
@pinussilvestrus pinussilvestrus self-assigned this Mar 11, 2022
@pinussilvestrus pinussilvestrus changed the title Add element.templates.createElement for Camunda Cloud Add elementTemplates.createElement for Camunda Cloud Mar 11, 2022
@pinussilvestrus pinussilvestrus force-pushed the 582-element-templates-create branch from 114b6a4 to 8c163a3 Compare March 11, 2022 12:25
@pinussilvestrus pinussilvestrus marked this pull request as ready for review March 11, 2022 13:24
@bpmn-io-tasks bpmn-io-tasks bot added needs review Review pending and removed in progress Currently worked on labels Mar 11, 2022
@pinussilvestrus pinussilvestrus requested review from nikku, a team, MaxTru and philippfromme and removed request for a team March 11, 2022 13:24
@pinussilvestrus
Copy link
Contributor Author

For the reviewer: if more context about these adjustments is needed, feel free to approach me 👍

Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@fake-join fake-join bot merged commit d85b560 into master Mar 14, 2022
@fake-join fake-join bot deleted the 582-element-templates-create branch March 14, 2022 16:25
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Be able to create an element from an element template
2 participants