ScriptoMates document structure is based on 4 pillars:

One or more Root diagrams

Linked diagrams

Sub diagrams, for specific actions that allow sub hierarchy

Error diagrams, which will be executed in case of run-time errors