Packages (OOM)

A package is a general purpose mechanism for organizing elements into groups. It contains model objects and is available for creation in all diagrams.

When you work with large models, you can split them into smaller subdivisions to avoid manipulating the entire set of data of the model. Packages can be useful to assign portions of a model, representing different tasks and subject areas to different development teams.



You can create several packages at the same hierarchical level within a model, or decompose a package into other packages and continue this process without limitation in decomposition depth. Each package at each level of decomposition can contain one or more diagrams.

Note: In activity and statechart diagrams, you do not create packages but instead decompose activities and states, which act like packages in this context.

You can expand a package to view its contents by right-clicking its symbol and selecting Composite View > Read-only (Sub-Diagram). You may need to resize the symbol to see all its content. Double-click the composite symbol to go to the package diagram.



To return to the standard symbol, right-click the symbol and select Composite View > None.