Hide sub process element by default when creating it programatically

If you want to insert collapsed subprocesses, take a look inside this topic. You will have to use the Palette or the ContextPad to achieve this. One another way collapsing elements would be to simply remove the isExpanded property in the DI section.