For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.11 (unreleased)

Evolve element templates

Element templates change over time. Evolve your templates so that users can adopt changes safely.

Choose upgrade or migration​

You can roll out a change to a template in one of two ways:

UpgradeMigration
What you publishA new version of the same templateA different template, with a new id
User inputKept, with its bindingsMay change bindings and drop user input
Use forCompatible changesBreaking changes
What users seeAn update hint on elements using the templateA deprecation hint on elements using the old template

Publish compatible changes as an upgrade​

When you publish a new version of a template, users can update their elements in a single step. Make sure that the update keeps what users configured working: every value a user provided keeps its technical binding, its meaning, and its validity.

Adding properties, and changing defaults, Hidden values, or presentation, keeps user input intact. Removing or renaming bindings, changing what a value means, or invalidating values that work today does not.

Publish breaking changes as a different template​

To ship a breaking change, migrate users to a different template:

  1. Publish the changed template with a new id, for example io.example.rest.v2.
  2. Deprecate the previous template. Use message and documentationRef to tell users what changed and what they need to do.

Users then replace the deprecated template on their elements with the new one. Replacing keeps the values of compatible properties on a best effort basis. Users may need to re-enter or adjust other values.

Keep templates available​

Elements reference the template version they use. Camunda Hub keeps published template versions available for you. If you distribute templates yourself, for example to Desktop Modeler, keep previous versions and deprecated templates available. Otherwise, elements show their template as missing, and users can no longer upgrade or migrate them.

Understand how values are carried over​

When an element changes its template, through an update or a replacement, values are matched by their technical binding:

  • Values that users changed are kept. Other values take the new template's value.
  • Static Hidden values always take the new template's value. Generated values are kept.
  • Dropdown values are kept as long as they are a valid choice.
  • Values of properties that are inactive, or that the new template does not define, are removed.

Review the upstream documentation to learn more about the template lifecycle.