A duplicate service task with different property panel

This is more of an add on to my other post.

I was wondering if it is possible to create a duplicate task (specifically the service task), and make it have different fields in the property panel? This would be for a custom task called Mail Task. Also for clarity, I would like to keep the service task as is, and create another task duplicating it, just with customized attributes and a custom property panel.

I understand the property panel extension example, but this is an example showing custom fields on all start events. I would like the custom fields to only show on my new Mail Task.

Would this be like a combinations of the custom element example and the property panel extension example, with some modifications to only show my custom properties on my mail task?

The use case that you described could be implemented as an element template. I recommend you to check out the element templates and linked projects. So you could create an element template for your Mail Task, and use it as a specialised service task.

Correct me if I am wrong, but that would require the use of camunda? I am trying to stay away from importing more dependencies than I need. Would it be possible to do this with just bpmn-js and bpmn-js-property-panel?

Not necessarily. Drupal’s bpmn.io integration uses element templates successfully even though the project does not depend on Camunda. Check out the blog post contributed by @jurgenhaas.

Thank you for the speedy reply. I will look into that further!

Finally got around to checking out the Drupal implementation, and unforuntatly it does look like they are using some camunda components. Specifically,

"@camunda/element-templates-json-schema": "^0.12.1",
"camunda-bpmn-moddle": "^7.0.1",

I have posted the answer on my other thread

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.