zeebe-modeler
zeebe-modeler copied to clipboard
Add support for templates / customised elements
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.
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
"
Here is a linter service that does validation based on user-defined rules: https://github.com/StephenOTT/Workflow-Linter
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
How far do you get with Element Templates, available in the Camunda Modeler.
It would be an easy thing to carry these over.
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!