Apama Documentation : Developing Apama Applications : Developing Apama Applications in Event Modeler : Creating Blocks : About blocks : How scenarios communicate with their blocks
How scenarios communicate with their blocks
Apama implements a block as an event type. When you create a block, Software AG Designer generates the event type definition for that block. The block's event type definition includes a number of actions that are defined for you and that you can edit.
Communication from a scenario to a block instance is accomplished through calls to these actions. That is, to initialize a block, change a parameter, call an operation, and so on, a scenario calls an action on the event that contains the block instance.
Communication from the block to its host scenario is also accomplished by calling actions. In this case, the actions have been passed into the block by the scenario. For example, when a scenario initiates an operation the scenario passes in an action that the block must call to indicate that the operation has been completed.
Copyright © 2013-2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback