zeebe-modeler icon indicating copy to clipboard operation
zeebe-modeler copied to clipboard

Add support for templates / customised elements

Open jwulf opened this issue 5 years ago • 5 comments

I'm working on a NestJS server that has opinionated workers in it that require specific custom headers for specific task types.

What I would like is the ability to add elements to the palette that are pre-configured service tasks where the necessary custom header keys are filled out, with some placeholder text for the values.

Then the user can choose, for example, an "Send Email" task, and drop it in the process, and it is a vanilla service task, but with the task type set to "email:send" (for example), and custom headers for "email:template", "email:address", and so forth.

Is such a thing possible at the moment using a plugin?

I guess adding them as a sub-menu or a tab on the existing palette would be the most extensible solution.

Happy to contribute code or hack on something if someone can point me in the right direction.

jwulf avatar Sep 27 '19 06:09 jwulf

What would make this next-level is the ability to validate the tasks against the schema, so that I could be told in the modeller: "Task of type email:send is missing a value for required custom header email:template"

jwulf avatar Sep 27 '19 06:09 jwulf

Here is a linter service that does validation based on user-defined rules: https://github.com/StephenOTT/Workflow-Linter

jwulf avatar Jan 23 '20 09:01 jwulf

Our use case is similar, we would like to define some kind of template/plugin that provides a preconfigured service taskSend Email with some custom UI elements like:

  • From - string with Drop-Down select
  • To - string
  • Subject - string
  • Msg - string

B-Stefan avatar Jan 29 '20 07:01 B-Stefan

How far do you get with Element Templates, available in the Camunda Modeler.

It would be an easy thing to carry these over.

nikku avatar Jan 29 '20 08:01 nikku

From what I could see the element template feature would cover 90% of our use cases. So nearly perfect!

It would be great to see this feature also in the Zebee modeler!

B-Stefan avatar Feb 10 '20 20:02 B-Stefan