The following code creates non Interrupting timer. However when timer got created it has the solid border and I expect dashed one for non-Interrupting timer. Please advise:
In the first example, your code will dispatch two separate commands. This means that you have to trigger undo (Cmd + Z or Ctrl + Z) twice to undo the whole operation: first to change the shape type, and then to remove the shape.
However, in the second example we prepare a non-interrupting event before it’s added to the diagram, so that when we call modeling.createShape it’s already in its target form. Then, if you trigger undo, it will remove the shape at once.