Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 32 additions & 2 deletions docs/components/modeler/element-templates/template-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ A property can be assigned to a group by setting the [`group` key](./template-pr

```json
{
...,
...,
"groups": [
{
"id": "definition",
Expand Down Expand Up @@ -231,7 +231,33 @@ A property can be assigned to a group by setting the [`group` key](./template-pr

## Deprecating a template: `deprecated`

Indicates whether the element template is deprecated.
- `deprecated` is an optional key.

Use `deprecated` to mark a [template as deprecated](https://github.com/bpmn-io/element-templates/blob/main/docs/LIFE_CYCLE.md#deprecation).

:::info
By deprecating an element template, you prevent its _future use_. Users will no longer see the template when choosing a template, changing an element's type, or creating a new element. Existing uses continue to work, with a deprecation hint shown in the modeler UI.
:::

The `deprecated` property can be an object or a boolean. If an object, it has the following attributes:

- `message: String`: A message to display to the user
- `documentationRef : String`: A link to documentation, i.e., to describe upgrade migration procedures

This information allows users to make sense of the deprecation and understand how to migrate to an undeprecated template:

```json
{
...,
"deprecated": {
"message": "Migrate to My Other Custom Task",
"documentationRef": "https://localhost/migrate-to-other"
},
...
}
```

When `deprecated` is a boolean (`true`), a deprecation hint appears in the properties panel without further help for the user:

```json
{
Expand All @@ -240,3 +266,7 @@ Indicates whether the element template is deprecated.
...
}
```

:::tip
Review the [upstream documentation](https://github.com/bpmn-io/element-templates/blob/main/docs/LIFE_CYCLE.md#overview) to learn more about template evolution and the template lifecycle.
:::
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,33 @@ A property can be assigned to a group by setting the [`group` key](./template-pr

## Deprecating a template: `deprecated`

Indicates whether the element template is deprecated.
- `deprecated` is an optional key.

Use `deprecated` to mark a [template as deprecated](https://github.com/bpmn-io/element-templates/blob/main/docs/LIFE_CYCLE.md#deprecation).

:::info
By deprecating an element template, you prevent its _future use_. Users will no longer see the template when choosing a template, changing an element's type, or creating a new element. Existing uses continue to work, with a deprecation hint shown in the modeler UI.
:::

The `deprecated` property can be an object or a boolean. If an object, it has the following attributes:

- `message: String`: A message to display to the user
- `documentationRef : String`: A link to documentation, i.e., to describe upgrade migration procedures

This information allows users to make sense of the deprecation and understand how to migrate to an undeprecated template:

```json
{
...,
"deprecated": {
"message": "Migrate to My Other Custom Task",
"documentationRef": "https://localhost/migrate-to-other"
},
...
}
```

When `deprecated` is a boolean (`true`), a deprecation hint appears in the properties panel without further help for the user:

```json
{
Expand All @@ -240,3 +266,7 @@ Indicates whether the element template is deprecated.
...
}
```

:::tip
Review the [upstream documentation](https://github.com/bpmn-io/element-templates/blob/main/docs/LIFE_CYCLE.md#overview) to learn more about template evolution and the template lifecycle.
:::
Loading