Apama 10.3.1 | Apama Documentation | Developing Apama Applications | EPL Reference | Monitors | The import declaration
 
The import declaration
The import declaration loads a plug-in library and makes it available to an EPL program. Plug-in libraries are shared libraries on Linux and UNIX systems and Dynamic Link Libraries on Windows systems.
On Linux and UNIX systems, the library is loaded from a libPlugInName.so file located in one of the directories listed in the environment variable LD_LIBRARY_PATH. On Windows, the library is loaded from a PlugInName.dll file located in the bin folder.
You can name a plug-in. The plug-in name is a library filename, not a full filepath, and is not allowed to contain any of the characters used as directory or device separators (forward slash, colon, or backslash).
You can also give the plug-in an identifier (an alias name) for use in the EPL program when you call the library's actions.
For example, to call a plug-in action foo() in the plug-in library wffftl.so or wffftl.dll, you would write the following:
monitor m {
   import "wffftl" as fft;
   action onload()
   {
      sequence <float> data := [];
      fft.foo (data);
   }
}
For detailed information, see Using EPL Plug-ins.

Copyright © 2013-2019 | 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.