If you want to extend an element with additional tags, you can create tags by calling createModel function with Tag parameter of app.factory. There are five kinds of Tag: String, Number, Boolean, Reference, and Hidden. Hidden tags are not shown in diagrams, but other tags are shown as properties. (Check Format > Show Property menu). Following code will create a string tag to the selected element.