Sub-Diagram in Visual Paradigm Desktop provides a structured way to decompose complex models into smaller, more focused diagrams. By associating a diagram with a model element in another diagram, you can elaborate on a particular element without overcrowding the original view. This allows you to maintain a high-level overview while making detailed information accessible whenever it is needed.
Whether you are modeling the internal behavior of a use case, breaking down a business process, describing the behavior of an activity, or elaborating a system component, sub-diagrams help you organize your models into manageable levels of detail.
What Is a Sub-Diagram?
A sub-diagram is a diagram associated with a model element in another diagram, known as its parent diagram. It provides a more detailed representation of that particular model element, allowing you to explore its internal structure, behavior, workflow, or related design information separately.
For example, a use case diagram describes the functional goals that a system provides to its users. However, it does not normally show the detailed sequence of activities involved in achieving a particular goal. You can associate an Activity Diagram or another suitable diagram with the relevant use case to describe its behavior in greater detail.
The original use case diagram remains focused on the system’s functional scope, while the associated sub-diagram provides the additional details.
In Visual Paradigm, sub-diagrams are connected to model elements rather than simply being independent drawings. This establishes a meaningful relationship between the high-level representation and its detailed elaboration.
Why Use Sub-Diagrams?
Sub-diagrams are important because good modeling is not just about representing information. It is also about organizing information at the appropriate level of abstraction. Different stakeholders need different levels of detail, and a well-structured model should make it easy to move between these levels.
Keep diagrams clean and readable
Putting every detail into one diagram can result in crowded shapes, overlapping connectors, and complicated relationships. Sub-diagrams allow you to move detailed information into separate views, keeping the parent diagram concise and easier to understand.
Support hierarchical modeling
Complex systems and processes are naturally hierarchical. A high-level element may represent an entire function, process, or subsystem, while its sub-diagram explains how that element works internally. Sub-diagrams provide a practical way to represent this hierarchy in a model.
Maintain different levels of abstraction
Architects, analysts, developers, and business stakeholders often need different perspectives of the same system. A parent diagram can communicate the overall structure, while sub-diagrams provide the technical or operational details required by specific audiences.
Improve model organization and maintainability
Dividing a large model into smaller, logically related diagrams makes it easier to locate information, understand individual responsibilities, and update specific areas without making the overall model unnecessarily complicated.
Preserve the relationship between overview and detail
Unlike maintaining completely independent diagrams, associating sub-diagrams with parent model elements establishes a direct relationship between the overview and its detailed representation. Users can navigate between related diagrams instead of manually searching for the corresponding information.
Sub-Diagram Features in Visual Paradigm
Create a New Sub-Diagram from a Model Element
Visual Paradigm allows you to create a new sub-diagram directly from an existing model element. This provides a convenient way to elaborate on an element while establishing its relationship with the new diagram.
To create a new sub-diagram:
- Open the parent diagram containing the model element you want to elaborate.
- Move the mouse pointer over the target shape to reveal its Resource Catalog icon.
- Click the Sub Diagrams resource icon.
- Select New Diagram… from the popup menu.
- In the New Diagram window, select the diagram type you want to create.
- Enter a name for the new diagram.
- Click OK to create the sub-diagram.
Visual Paradigm lists diagram types suitable for the selected model element at the top of the New Diagram window, helping you choose an appropriate diagram for the intended elaboration.
Once created, the new diagram is associated with the selected model element. Importantly, child model elements contained in the sub-diagram are also attached to that model element, helping maintain the model’s structural organization.
Associate an Existing Diagram as a Sub-Diagram
You do not always need to create a new diagram when elaborating a model element. If you already have a diagram containing the relevant information, Visual Paradigm allows you to associate that existing diagram with a model element as its sub-diagram.
This is particularly useful when:
- You have already created a detailed diagram and want to connect it to a higher-level model element.
- You want to reuse an existing diagram rather than recreate its contents.
- You are organizing an existing project into a more structured parent-child diagram hierarchy.
To associate an existing diagram:
- Open the parent diagram and locate the model element to elaborate.
- Move the mouse pointer over the shape to reveal the Resource Catalog icon.
- Click the Sub Diagrams resource icon.
- Select Existing Diagram… from the popup menu.
- In the Add Sub Diagrams window, select the diagram or diagrams you want to associate with the model element.
- Click OK to confirm.
The selected diagram is now associated with the model element and can be accessed through its Sub Diagrams resource.
Associate Multiple Sub-Diagrams with One Model Element
A single model element may need to be elaborated from several perspectives. For example, a system function may require an activity diagram to explain its workflow, a sequence diagram to illustrate interactions, and a state machine diagram to describe its state transitions.
Visual Paradigm supports selecting multiple existing diagrams when associating diagrams with a model element. This allows one parent element to provide access to multiple detailed views without forcing all information into a single diagram.
This capability is useful when different diagrams describe different aspects of the same requirement, use case, process, or system element.
Manage and Remove Sub-Diagrams
As a model evolves, its diagram relationships may need to be reorganized. Visual Paradigm provides a management function for reviewing and removing sub-diagram associations.
To manage sub-diagrams:
- Move the mouse pointer over the parent model element.
- Click its Sub Diagrams resource icon.
- Select Manage… from the popup menu.
- In the specification window, select the sub-diagram association you want to remove.
- Click Remove.
- Confirm the removal when prompted.
- Click OK to complete the operation.
Removing a sub-diagram association allows you to reorganize the relationships between diagrams and model elements. It removes the selected diagram from the parent element’s sub-diagram list; it should not be confused with deleting the diagram itself from the project.
Navigate Between Parent Diagrams and Sub-Diagrams
A key benefit of sub-diagrams is the ability to move between a high-level diagram and its associated detailed view. Instead of searching through the project for a related diagram, you can access the sub-diagram directly from its parent model element through the Sub Diagrams resource.
Visual Paradigm also provides navigation back to the parent context through the model element links available in supported sub-diagram flows. This makes it easier to understand where a detailed diagram belongs within the larger model.
Quick navigation between parent and sub-diagrams helps users explore complex models while preserving their understanding of the overall structure.
In/Out Flows in Sub-Diagrams
When a sub-diagram represents a continuation of a workflow or behavior, it is important to understand how the flow enters the detailed diagram and how it returns to the parent context.
Visual Paradigm provides In Flow and Out Flow objects to represent these transitions. They help maintain the continuity of a process when its details are divided across parent and sub-diagrams.
Supported Diagram Types for In/Out Flows
In/Out Flow handling is particularly relevant to diagram types that describe sequences of activities, processes, and state transitions.
- Business Process Diagram (BPD): A sub-process can be elaborated into a separate Business Process Diagram.
- UML State Machine Diagram: A sub-state machine can be created from a submachine state.
- UML Activity Diagram: An Activity Diagram or State Machine Diagram can be created as the behavior of an action.
In these situations, Visual Paradigm automatically creates the corresponding In/Out Flow objects in the sub-diagram when a flow exists.
Understanding In Flow
An In Flow represents the entry point of a sub-diagram from the perspective of its parent diagram. It indicates that the execution or process flow enters the detailed diagram through a connection with the parent model element.
An In Flow provides information about:
- The initial node of the sub-diagram, which is conceptually connected from the parent diagram.
- The model element that connects to the parent element of the sub-diagram.
- The connector representing the relationship with the parent diagram.
Understanding Out Flow
An Out Flow represents the point at which the flow leaves the sub-diagram and returns to the parent-level context.
It allows the detailed workflow to indicate how its execution continues after the elaborated behavior or process has been completed.
Connect In/Out Flows to Sub-Diagram Content
In/Out Flow objects are not merely visual indicators. They can be used to model the actual continuation of a flow within the sub-diagram.
To represent a flow entering the sub-diagram, connect the initial node associated with the In Flow to the relevant content inside the sub-diagram. When the flow reaches its exit point, connect the final element to the Out Flow’s end node.
This establishes a clear path through the detailed diagram while preserving its conceptual connection to the parent process or behavior.
Hide or Show In/Out Flows
Although In/Out Flows are useful for understanding the relationship between parent and sub-diagrams, there may be situations where you want to simplify the visible presentation of a diagram.
Visual Paradigm allows you to hide In/Out Flows when they are not needed in the current view. To do so, right-click an In/Out Flow object and select Hide In/Out Flows from the popup menu.
This provides flexibility when preparing diagrams for different audiences or focusing on the internal details of a workflow without displaying its parent-level flow connections.
Return to the Parent Diagram Through an In/Out Flow
In/Out Flows also provide a convenient way to navigate back to the parent diagram. Simply click the model element link displayed inside the In/Out Flow to return to the corresponding parent context.
This is especially helpful when working with multiple levels of process decomposition, where users may need to move repeatedly between detailed workflow diagrams and their parent processes.
Practical Examples of Using Sub-Diagrams
Elaborating a Use Case with an Activity Diagram
Consider an online shopping system with a use case called Place Order. The use case diagram communicates the goal and its relationship with the customer and other system actors, but does not need to contain every step of the ordering process.
You can associate an Activity Diagram with the Place Order use case to describe the detailed workflow, including selecting products, reviewing the shopping cart, entering delivery information, making payment, and receiving order confirmation.
This keeps the use case diagram focused on functional requirements while providing developers and analysts with a detailed behavioral view.
Decomposing a Business Process into Sub-Processes
Imagine a business process called Order Fulfillment. Its parent Business Process Diagram may show major activities such as receiving an order, processing payment, preparing goods, and arranging delivery.
The Prepare Goods sub-process can be elaborated into a separate Business Process Diagram containing detailed activities such as checking inventory, picking products, performing quality checks, and packaging the order.
In/Out Flows help represent the continuation of the process between the parent and detailed diagrams.
Modeling Complex State Behavior
A system component may have a complex lifecycle involving multiple states and transitions. Rather than displaying every transition in one large State Machine Diagram, you can use a sub-state machine to elaborate a particular state.
This makes the overall state machine easier to understand while allowing developers to examine the detailed behavior of individual states when necessary.
Describing the Internal Behavior of an Action
In an Activity Diagram, an action may represent a complex operation that deserves further explanation. By creating an Activity Diagram or State Machine Diagram as the behavior of that action, you can describe its internal execution separately.
The parent Activity Diagram remains focused on the overall sequence of actions, while the sub-diagram explains the internal behavior of the selected action.
Sub-Diagrams and Hierarchical Modeling
Sub-diagrams are closely related to the principle of hierarchical modeling, in which a complex system is represented through multiple levels of abstraction.
At the highest level, a diagram presents the major components, processes, or functions. Individual elements can then be elaborated through sub-diagrams, which may contain further details and their own associated sub-diagrams where appropriate.
This approach helps organize large modeling projects into logical sections, making it easier to understand the system progressively rather than requiring users to interpret every detail at once.
It is particularly useful in enterprise architecture, software design, business process modeling, and requirements analysis, where a single model may need to communicate both an overall structure and detailed operational behavior.
Best Practices for Working with Sub-Diagrams
- Use sub-diagrams when additional detail is necessary.
Avoid creating unnecessary diagram layers for elements that can be understood clearly in their existing context. - Give each sub-diagram a clear purpose.
Choose a diagram type that communicates the intended structure, behavior, workflow, or relationship effectively. - Keep parent diagrams focused.
Use parent diagrams to communicate the major elements and relationships rather than duplicating all the detailed information found in sub-diagrams. - Use meaningful diagram names.
Descriptive names make it easier for team members to understand the purpose of each detailed view. - Reuse existing diagrams where appropriate.
Associate an existing diagram with a model element when it already contains the required information. - Preserve flow continuity.
When decomposing process-oriented diagrams, use In/Out Flows to represent how the flow enters and leaves the detailed view. - Review diagram relationships as the model evolves.
Use the management function to maintain appropriate associations as project requirements and model structures change.
Who Benefits from Sub-Diagrams?
Sub-diagrams are useful for anyone who works with complex visual models and needs to balance high-level communication with detailed analysis.
- Software architects: Decompose complex system structures and behaviors into manageable views.
- Business analysts: Elaborate business functions, use cases, and process activities without overcrowding overview diagrams.
- System analysts: Explore detailed system behavior while maintaining traceable relationships with higher-level requirements and functions.
- Developers: Understand the internal behavior of system functions, actions, and components.
- Enterprise architects: Organize complex architectural models into multiple levels of detail.
- Project teams: Communicate complex designs more effectively by presenting information in appropriately scoped diagrams.
Availability of Sub-Diagram in Visual Paradigm
Sub-Diagram is available in all five editions of Visual Paradigm Desktop:
- Community Edition
- Modeler Edition
- Standard Edition
- Professional Edition
- Enterprise Edition
Both Sub-Diagram functionality and quick navigation between parent and sub-diagrams are supported across these editions. You can therefore organize and elaborate your models using sub-diagrams regardless of which Visual Paradigm Desktop edition you use.
Compare Visual Paradigm Editions to explore the capabilities available in each edition.
Frequently Asked Questions About Sub-Diagrams
What is a sub-diagram in Visual Paradigm?
A sub-diagram is a diagram associated with a model element in another diagram. It provides a detailed view of that element, allowing users to elaborate on its internal structure, behavior, or workflow while keeping the parent diagram concise.
How do I create a sub-diagram in Visual Paradigm Desktop?
Move the mouse over a model element, click its Sub Diagrams resource icon, and select New Diagram. Choose a suitable diagram type, enter a name, and click OK. Visual Paradigm creates the diagram and associates it with the selected model element.
Can I use an existing diagram as a sub-diagram?
Yes. Select Existing Diagram from the Sub Diagrams resource menu, choose one or more existing diagrams in the Add Sub Diagrams window, and confirm your selection. The selected diagrams will be associated with the model element.
Can one model element have multiple sub-diagrams?
Yes. You can associate multiple existing diagrams with the same model element, allowing you to elaborate on different aspects of that element through separate diagram views.
How do I remove a sub-diagram?
Open the Sub Diagrams resource menu, select Manage, choose the association you want to remove, and click Remove. Confirm the operation. Removing the association is different from deleting the diagram itself from the project.
What are In/Out Flows in a sub-diagram?
In/Out Flows are objects that represent how a workflow enters and leaves a sub-diagram. They help preserve the conceptual continuity of processes and behaviors that are decomposed across multiple diagrams.
Which diagram types support automatic In/Out Flow creation?
Visual Paradigm automatically creates In/Out Flow objects in applicable sub-diagrams created from Business Process Diagram sub-processes, State Machine Diagram submachine states, and Activity Diagram actions when a flow exists.
Can I hide In/Out Flows?
Yes. Right-click an In/Out Flow object and select Hide In/Out Flows from the popup menu to hide the flow objects in the sub-diagram.
How do I navigate back to the parent diagram?
You can click the model element link displayed inside an In/Out Flow to return to the parent diagram. This provides a convenient way to navigate between detailed process views and their parent context.
Does creating a sub-diagram affect the parent model element?
Yes. The sub-diagram is associated with the selected parent model element. In addition, child model elements contained in the sub-diagram are attached to that model element, helping preserve the model structure.
Is Sub-Diagram available in Visual Paradigm Community Edition?
Yes. Sub-Diagram functionality and quick navigation between parent and sub-diagrams are available in Community, Modeler, Standard, Professional, and Enterprise editions of Visual Paradigm Desktop.