Introduction to block definition files
A block is defined in a block definition file, which has a .bdf extension. This XML file describes the functionality of the block and includes its implementation in EPL. With Apama Studio, you graphically define the block’s interface, and Apama Studio automatically generates all the XML elements of the .bdf file. In addition, Apama Studio generates skeleton EPL code for the block’s behavior. Apama Studio provides a dedicated editor where you add your custom code and it validates the EPL code you add.
The block definition file actually defines an EPL template. The term “template” is used because the EPL in the .bdf is not complete EPL code. Instead of the actual block name, the .bdf code uses a specially encoded stand-in for the real block name. The real names are automatically generated when the combined scenario and block are converted into full EPL code when they are injected into the correlator.