In version 12.0, the element for the incoming and out-going flows are automatically pulled into sub-diagram when:
- Modeling the behavior of an action in UML Activity Diagram
- Modeling the detail of a submachine state in State Diagram
- Modeling the detail of sub-process in Business Process Diagram
- Decomposing the process in Data Flow Diagram
Once the sub-diagram is being created and the incoming and outgoing flow are pulled into the sub-diagram, you can then start modeling the sub-diagram from the incoming flow and end with the out-going flow.
![05 model with in out flow](https://cdn-images.visual-paradigm.com/tutorials/inoutflows_screenshots/05_model_with_in_out_flow.png)
To turn on the in-flow and out-flow indicator, right-click on the blank area of the diagram and select Presentation Options > Show In/Out Flows.
![06 turn on in flow flow](https://cdn-images.visual-paradigm.com/tutorials/inoutflows_screenshots/06_turn_on_in_flow_flow.png)
Once the In-flow and Out-flow indicator are shown, you can navigate to the parent diagram by double click on it.
![diagram](https://cdn-images.visual-paradigm.com/tutorials/inoutflows_screenshots/07_navigate_from_sub-diagram.png)