Developing Apama Applications > Developing Apama Applications in Event Modeler > Working with Blocks Created from Scenarios > Inheriting sub-scenarios > Example of inheriting sub-scenarios
Example of inheriting sub-scenarios
The following figure illustrates how the inheritExternalInstances parameter works. Each main scenario is owned by the user account under which it was created. When a main scenario inherits a sub-scenario, the inherited sub-scenario is visible to the main scenario.
Remember that inherited sub-scenarios are always of the same type as the scenario block for which you are setting the inheritExternalInstances parameter. In the following figure, the scenario blocks are each shown as MyScenarioBlk 1. They could of course have been shown as MyScenarioBlk 2, MyScenarioBlk 3, and MyScenarioBlk 5, or any other similar combination. The important point is that they are all instances of MyScenarioBlk. In the figure,
*Main scenario X can operate on sub-scenarios A-1, A-2, and A-3.
*Main scenario Y can operate on sub-scenarios A-1, A-2, A-3, A-4, and A-5.
*Main scenario Z can operate on sub-scenarios A-4 and A-5.
Scenario inheritance
Copyright © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.