- If you’re speaking of a JSON file with a couple of templates you want to manage, you’d have to take care of that yourself. There is no tool for managing templates. You can indeed create and add new templates on the fly. A Camunda Modeler Plugin can access the element templates like any other component:
function myPlugin(elementTemplates) {
var myTemplate = {
// ...
};
var existingTemplates = elementTemplates.getAll();
elementTemplates.set(existingTemplates.concat([ myTemplate ]));
}
myPlugin.$inject = [ 'elementTemplates' ];
At the moment custom models can not be added using a Camunda Modeler plugin. You’d have to build your own Camunda Modeler that includes the custom model.
-
Extending the palette on the fly is possible but you’d need to hack it.
-
For getting the porperties of an element template see 1., showing properties of elements as overlays is pretty easy, see example.