Developing Apama Applications > Using Apama Studio > Working with Projects > Adding resources to Apama projects > Creating new blocks > Adding EPL code to a block
Adding EPL code to a block
When you save a block, Apama Studio generates the underlying code that defines the block’s interface and saves it as a block definition file with a .bdf extension. To this file, you then add EPL code to implement the necessary behavior. To add code to the block:
1. If necessary, double-click the block in the Project Explorer to open it in the block editor. In the block editor display the Source tab.
2. On the Source tab, code is displayed either with a gray background or a white background. Code with a gray background is maintained by Apama Studio and is not editable. The sections of code with a white background are the areas where you add your custom EPL code.
For more information on adding EPL code to a block, see Adding EPL code to the block definition. Also, for background information on the elements that make up the actual code of a block’s block definition file, see File Definition Formats.
Copyright © 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.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.