Apama 10.3 | Apama Documentation | Developing Apama Applications | Developing Apama Applications in Event Modeler | Working with Blocks Created from Scenarios | Terminology for using scenario blocks
Terminology for using scenario blocks
To use blocks created from scenarios, you must understand the following terms:
*Source scenario. A scenario block that you export to create a block.
*Scenario block. A block that you create from a scenario by selecting Scenario > Generate Block in the Software AG Designer menu and then saving and building the project. Alternatively, you can select Software AG > Export as Block from the File > Export dialog.
*Main scenario. A scenario that uses a scenario block.
*Sub-scenario. A source scenario instance that a scenario block dynamically creates. When you use a scenario block in a main scenario, the scenario block manages sub-scenarios according to the rules you define in the main scenario. The operations a scenario block can perform on a sub-scenario include create, retrieve, commit, delete, delete all, iterate, and next.
*Context instance. Also referred to as the context sub-scenario. This is the current sub-scenario. A scenario block can create any number of sub-scenarios. However, at any point in time, a main scenario can modify only the context instance. Certain operations make a particular sub-scenario the context instance. You can also set the value of the scenario block instance id parameter to the instance ID for a particular sub-scenario and then call the scenario block retrieve operation to make that sub-scenario the context instance.
The following figure shows the relationships among these items.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.