Chapter 2 RMS and Decision Manager Configuration : Adding Custom Functions to Decision Manager

Adding Custom Functions to Decision Manager
To configure Decision Manager to use custom functions, you must complete the tasks below.
You can add multiple custom function JAR files (see Task D) but only functions provided in the JAR file specified in the FUNC_JAR property (see Task B), display in the Custom Functions view. (You can use functions from additional custom function JAR files by entering them manually.)
 
Task A Create the Functions and Place them in the Class Path
1.
Create the custom function or functions. See TIBCO BusinessEvents Language Reference for guidelines.
2.
Task B Add the Custom Function JAR Path to the Initialization File
The custom functions provided in the JAR specified by the FUNC_JAR property appear in the custom functions view in the Decision Manager UI. You can specify only one JAR file in this property.
1.
Open the BE_HOME/DecisionManager/DecisionManager.ini file.
2.
Add the FUNC_JAR property and provide the fully-qualified path to the JAR file. This property takes only one JAR file as its value. For example:
   DFUNC_JAR=C:/tibco/custom/customfunctions.jar
3.
Task C (For Multiple JARs only) Update the Decision Manager Extended Classpath and Set Tester Level
If you have only one custom function JAR file, skip this step. (The property FUNC_JAR performs this task, but only for one JAR.) If you have multiple custom function JARs do the following:
1.
Open the BE_HOME/DecisionManager/configuration/bui-config.tra file.
2.
bui.extended.classpath=C:/custom/customfunctions.jar; c:/custom/morefunctions.jar
3.
Set the bui.tester.engine.feature.level property to local or full. See Configuring Project Tester Options.
4.
Task D Add the Custom Function JAR Path to the Decision Manager File Code Generation Property
Enables Decision Manager to generate and compile the java code for testing in Decision Manager.
1.
Open the BE_HOME/DecisionManager/configuration/bui-config.tra file.
2.
Add the fully qualified path to the custom functions JAR files in the tibco.bui.codegen.prepend_classpath property. For example:
tibco.bui.codegen.prepend_classpath=C:/custom/customfunctions.jar; c:/custom/morefunctions.jar
3.
Task E Add the Custom Function JAR Path to the RMS Property File
Enables RMS to generate and compile the java code for the production system.
1.
Open the BE_HOME/rms/bin/be-rms.tra file.
2.
Add the fully qualified path to the custom functions JAR to the tibco.env.CUSTOM_EXT_PREPEND_CP property. For example:
   tibco.env.CUSTOM_EXT_PREPEND_CP=C:/custom/customfunctions.jar