Developing Apama Applications > Using Apama Studio > Creating Blocks > Defining new blocks in Apama Studio > Specifying the block metadata
Specifying the block metadata
Creating a block in Apama Studio consists of two main steps. In the first step you create the block metadata and specify its interface. In the second step you add the EPL code that implements the block’s behavior.
When you create a new block, you should place it in the project’s default blocks directory. This directory is found in the project’s catalogs directory. The block directory has a name in the form <project_name>\blocks. So, for example, the default block directory of a project named My_Project will be catalogs\My_Project blocks. If you place the block in the default block directory, scenarios created in the project will automatically find them and make them available in Event Modeler when you are displaying the scenario.
You add a new block to a project by right-clicking the project and selecting New > Block from the pop-up context menu. Apama Studio displays the New Block wizard where you specify whether you want to create a block from scratch or base it on an existing event type. You also specify any other information that will make up the block’s metadata.
When you finish adding information in the New Block wizard, the block is added to the project and the block’s metadata is displayed in the Builder tab of the block editor.
For specific steps on how to add a new block to an Apama project, see :
*Creating a block with the block editor
*Creating a block from an EPL event definition
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.