zeebe-io / zeebe-modeler

Desktop Application for modeling Zeebe Workflows with BPMN
MIT License
220 stars 48 forks source link

Add support for templates / customised elements #119

Open jwulf opened 4 years ago

jwulf commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

B-Stefan commented 4 years ago

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:

nikku commented 4 years ago

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

It would be an easy thing to carry these over.

B-Stefan commented 4 years ago

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!