These files can be used to create a WindwardCustomCallbacks.jar file containing your own custom callbacks, to be used with the Windward Java engine, Version 13 or newer.
The CustomFunctionExample.ipr is a project file for IntelliJ, a Java IDE.
- Compile using Java version 1.7 or earlier.
- Do not change the version of the JAR created using this code.
- To use, replace the assembly of the same (WindwardCustomFunctions.jar) name where you installed the Java engine.
- This provides you a means to limit access to the datasource. However, like any security measure, it has weaknesses and we strongly recommend you use the tightest possible limitation in the access allowed in the datasource via the credentials used in addition to this functionality.
Creating Custom Functions
- Open Catapult. (Found under Start -> All Programs -> Windward Studios -> Windward Reports Java Engine -> Java Engine Help Launcher)
- In Catapult, click the Java button.
- Under Java Demos, click the Specialized button.
- Use the scroll bar to scroll to the right and click the Custom Callbacks button.
In the file WindwardCustomCallbacks.java, you can replace the code called in the Callbacks listed. Currently the only callback used is “ApproveSelect” which is called whenever the engine makes a call to your datasource. You can approve a select by just returning the select passed in, modify the select and return it or deny it by throwing a datasourceexception.
- Click Build, Rebuild Project.
Installing WindwardCustomCallbacks.jar for use with the Java Engine
- In Catapult click click the Custom Callbacks button to open the WindwardCallbacks folder. By default, this is located in C:\Users\<username>\Documents\Windward Java Engine Samples\Java\Specialized\
- Navigate to out, artifacts, WindwardCallBacks.
- Copy the file WindwardCustomCallbacks.jar
- Navigate to the install directory of the Java Engine
- Open the jars folder
- Delete the current WindwardCustomFunctions.jar file
- Paste your new file in its place