A StreamBase module is a set of operators that include input and output streams, and is described in a single EventFlow or StreamSQL file. A module can call another module by means of a Module Reference operator. For example, a top-level module can have a Module Reference to a second-level module that is defined in a separate file. The second-level module can have Module References to third-level modules, and so on. Developing with modules allows you to avoid replicating code by reusing the same functionality in multiple applications.
Create an EventFlow module by selecting File>New>EventFlow Application.
Create a StreamSQL module by selecting File>New>StreamSQL Application.
Make sure the top-level module can locate its called modules on the module search path.
Make sure any file resources required by operators and adapters in your modules can be located on the resource search path.
In the top-level module, reference called modules with a Module Reference, as described in Referencing a Module.
When you use a module in multiple applications, remember that any changes to the called module itself are inherited in every module that references it. Conversely, changing the properties of an individual Module Reference does not change the module or any other applications that reference it.