Closed smbea closed 1 year ago
I implemented your suggestions. Two things:
newTemplate
is null in applyTemplate
, it will unlink not remove - so I added that eventapplyTemplate
does the exact same thing that unlinkTemplate
does if newTemplate=null
. We could just remove unlinkTemplate
but I decided to keep unlinkTemplate
with a call to applyTemplate(element, null)
to avoid having to add null
in each call. But feel free to disagree hereHappy to see this merged 🎉
This PR adds the
removeTemplate
,unlinkTemplate
andupdateTemplate
utilities to the element templates API.This will make https://github.com/camunda/camunda-bpmn-js/issues/250 easier