Copyright © TIBCO Software Inc. All Rights Reserved |
TIBCO BusinessEvents allows you to write your own custom functions in Java and add them to the function registry.When you have added the custom functions to TIBCO BusinessEvents Studio, their catalog appears automatically in the Catalog Functions view, along with the built-in function catalogs.TIBCO BusinessEvents documentation does not contain detailed instructions for creating custom functions or programming in Java. It is assumed that you are already familiar with programming in Java, and have at a minimum already implemented a class and a static function.The steps below summarize the tasks required to integrate your own custom functions with TIBCO BusinessEvents Studio. An additional action is required make the functions available at runtime.
2. Create a file called functions.catalog, an XML file that makes it possible to access your custom functions from TIBCO BusinessEvents Studio. You can also include information for a tool tip for each function. See Structure of a Function Catalog for details.
3. Create a .jar file that includes the following:
4. Add the location of the JAR file or files (and any dependent JAR files) to the project properties. See Working with External Library and Custom Function Paths for details.The functions are then available for use in any rule editor. (It is not necessary to restart TIBCO BusinessEvents Studio before you can use your functions.)
The locations of the custom function jars are stored in the .beconfig configuration file, which is located at the root level of the TIBCO BusinessEvents Studio project. You can check this configuration file into a version control system so that it can be shared with other project developers.Note that the .beconfig file contains other information as well, such as the location of project libraries and so on.
Copyright © TIBCO Software Inc. All Rights Reserved |