You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Store element templates as .json file in the resources/element-templates folder, relative to the modelers executable or relative to the modelers data directory (see below). Alternatively, they can be stored in a .camunda/element-templates directory that resides, relative to the currently opened diagram, anywhere in the diagrams path hierarchy.
Unfortunately Camunda Modeler version 4.4.0 is displaying templates only from location: \resources\element-templates
If templates are located only in .camunda/element-templates then no template is available:
But if templates will be located in both directories then logs contains templates conflicts so in this case modeler is loading templates from both location. For example:
[C:\Camunda\bugTest1.bpmn] template id <TestTask> already used
at e.exports._logError (webpack:///node_modules/bpmn-js-properties-panel/lib/provider/camunda/element-templates/Validator.js:284:12)
at _logError (webpack:///node_modules/bpmn-js-properties-panel/lib/provider/camunda/element-templates/Validator.js:107:18)
at _validateTemplate (webpack:///node_modules/bpmn-js-properties-panel/lib/provider/camunda/element-templates/Validator.js:71:19)
at Array.forEach (<anonymous>)
at forEach (webpack:///node_modules/bpmn-js-properties-panel/lib/provider/camunda/element-templates/Validator.js:56:16)
at addAll (webpack:///node_modules/bpmn-js-properties-panel/lib/provider/camunda/element-templates/ElementTemplatesLoader.js:74:34)
at setTemplates (webpack:///src/app/tabs/bpmn/BpmnEditor.js:202:20)
at async (webpack:///src/app/tabs/bpmn/BpmnEditor.js:135:4) [ error ]
Steps to Reproduce
Insert any template to .camunda\element-templates location.
Run Camunda Modeler 4.4.0, and create task with appropriate type (so the applicable template was created in previous step).
Click "Open Catalog" to list templates - no template is visible.
Copy .json file with template to resources\element-templates location.
Click "Open Catalog" to list templates - template will be visible. Apply it on the task.
Save the diagram and close Camunda Modeler.
Open Camunda Modeler again and load previously saved .bpmn diagram.
Observe logs containing errors caused by templates conflicts.
Expected Behavior
Camunda Modeler should always use declared templates locations. Templates located in .camunda\element-templates should be visible on the list displayed after "Open Catalog" button click.
Environment
OS: Windows 10
Camunda Modeler Version: 4.4.0
The text was updated successfully, but these errors were encountered:
Describe the Bug
According to documentation (available at: https://github.com/camunda/camunda-modeler/tree/master/docs/element-templates):
Unfortunately Camunda Modeler version 4.4.0 is displaying templates only from location: \resources\element-templates
If templates are located only in .camunda/element-templates then no template is available:
But if templates will be located in both directories then logs contains templates conflicts so in this case modeler is loading templates from both location. For example:
Steps to Reproduce
Expected Behavior
Camunda Modeler should always use declared templates locations. Templates located in .camunda\element-templates should be visible on the list displayed after "Open Catalog" button click.
Environment
The text was updated successfully, but these errors were encountered: