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.

As a user I want to change a task to a different type as an element template is applied

See original GitHub issue

Is your feature request related to a problem? Please describe

As I model my diagram I tend to start with plain tasks rather than executable, i.e. bpmn:ServiceTask ones. Everything else does slow me down because I’d have to manually make each of my tasks a service task.

As I make my diagram executable I’m revising each task, making it either a service task, business rule task, …

What I wanted to do is to apply a “mail task” template on a blank task; that template shall make the task a bpmn:ServiceTask before applying the template. If it was not a camunda:ServiceTaskLike or zeebe:ServiceTaskLike it was not executable by the engine.

What I have to do is to manually change the task to be a service task first, which is annoying. A unneeded indirection:

capture ze0qpr_optimized

Camunda Modeler v5 screen capture, showcasing ServiceTask -> REST task transition required.

Furthermore, when searching for an element template, the service task template wouldn’t even show up for blank tasks, which makes it harder to discover.

Describe the solution you’d like

  • Be able to configure a type binding for an element template; if it does not match with the current task the task is morphed into the target type before the other element template properties are applied
  • Given a type binding, also display these element templates on template select (maybe as a follow up action)

➡️ Goal: Make it quicker to make a task executable backed by an element template.

Describe alternatives you’ve considered

Consider the current limitation a feature, not a bug.

Additional context

Came up in the context of connectors, specifically

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:22 (21 by maintainers)

github_iconTop GitHub Comments

marstammcommented, Mar 24, 2022

RE the JSON schema:

instead of adding the type to the properties array, we can also have it as a root property

  'appliesTo': [
  'elementType': {               // <-- new
    'value': 'bpmn:ServiceTask' 

This ensures that there is only one target type and we don’t have to validate type: 'hidden'. Cf.

nikkucommented, Mar 29, 2022

Would this still be a valid Template […]? As we also check if an element can be applied using the is() utility (includes subclasses) rather than a perfect match, I think we should support this.

I don’t see a reason it should not be (a valid template). Our users should be able to facilitate the full power of our meta-model.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Change template and need add or create 3 ta...
Hello All, My requirement is Using Change template and need add or create 3 tasks to the CR when this template is applied...
Read more >
Change the task type for more accurate scheduling
How task types change your schedule ; Fixed work. This setting assumes work doesn't change, even after changing durations or adding people. Use...
Read more >
Create Custom Worker Task Templates - Amazon SageMaker
Customize the Amazon Augmented AI worker console and instructions by creating a custom worker template and integrating it with an Amazon A2I human...
Read more >
Edit a template task - Workfront - Experience League - Adobe
When you or another user creates a project from this template, all settings you applied to template tasks become the settings for the...
Read more >
Using Task Templates | ShotGrid
Choose “Edit Task Template for [# entity types]…” Choose the Task Template you want to apply. Click “Apply selected”. New tasks will then...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found