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.

Add element Id refresh/rebuild button

See original GitHub issue

Based on conversation from #380

The element ID is set on the initial creation of the element on the canvas.

When a user adds a Task element, the ID is set to something like: Task_1u62ryy Currently, when a user changes the task to a User Task, the ID remains the same.

Proposal:

Allow the user to manually refresh/rebuild the element ID based on automated naming convention such as Task_1u62ryy becomes UserTask_CallCustomer_1i87o9i.

Current proposal for for naming convention: [element type]_[element name]_[generated short UUID] The short UUID ensures that if there are two elements with the same element type and name, the UUID will still be unique.

If we wanted to get really fancy 😸, this could be a configurable property of the modeler allowing someone to create a “pattern” to follow based on Tokens/Slugs. But I think that is just “flashy” rather than having a strong use case for a v1.

The user will have to manually refresh the IDs and will not be automatic when the element type is changed.

Could see use cases for an ID refresh on an individual element and in Bulk. Bulk Scenario: user creates the BPMN and after the overall “design” is established, the user “refreshes” all ID values so they correspond with the proper naming convention.

Example scenario where being able to easily refresh the ID is helpful:

screen shot 2016-07-28 at 12 14 29 pm

screen shot 2016-07-28 at 12 14 48 pm

Where the End event was changed to a Intermediate event, but the ID is still indicates it is a End Event.

Or:

screen shot 2016-07-28 at 12 13 41 pm

screen shot 2016-07-28 at 12 13 51 pm

Where the Task was changed to a User Task, but the ID still indicates it is a generic task.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:18 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
StephenOTTcommented, Nov 13, 2016

@nikku here is another scenario where this would be helpful.

You convert a Task into a Sub-Process. The ID remains with the original Task name.

screen shot 2016-11-13 at 2 23 53 pm

screen shot 2016-11-13 at 2 24 16 pm

1reaction
berndrueckercommented, Aug 1, 2016

Hey Ingo.

Please not that it should be assertThat(processInstance).isWaitingAt(“receiveTaskReceivePayment”).hasPassed(“sendTaskSendInvoice”).

According to our best practices: https://camunda.com/best-practices/naming-technically-relevant-ids/

Cheers Bernd

Read more comments on GitHub >

github_iconTop Results From Across the Web

refresh DOM after append element - javascript
Your code works here as it is because you are adding the dynamically element before binding the event but using event delegation will...
Read more >
How to force-refresh a React child component: the easy way
To force the child component to re-render — and make a new API call — we'll need to pass a prop that will...
Read more >
How and when to force a Flutter widget rebuild
Sometimes, a Flutter widget requires manual rebuilding in order to update. Learn why this is the case (and how to implement it) here....
Read more >
Refreshing the Asset Database
Refreshing the Asset Database · It looks for changes to the Asset files, and then updates the source Asset Database · It imports...
Read more >
Kontent.ai Smart Link SDK
data-kontent-element-codename (RTE or LIE) → data-kontent-add-button ... your preview, you need to trigger the rebuild of the page before refreshing it.
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