Palette customization

One more question about the palette customization. Is there any way to insert an element with an initially added eventTypeDefinition? I need to have a clock (like if i used the spanner tool) instead of intermediate throw event in my palette

What did you try already?

I have already solved the problem, but i don’t like the solution.

  1. For the entry of the palette i set the type and the classname of Timer (but its still Intermediate Catch Event)
  2. I overrided the BpmnRenderer method drawShape, where i checked if the element is IntermediateThrowEvent and if yes, initialized eventDefinitions with the type TimewEventDefinition

But still, the problem was that the element definition didn’t appear in the XML file. So i used BpmnReplace right after the element is located on the screen.