Calling Server Hooks from script
The com.ibm.di.server.RS class (script variable
"main") has a method for invoking Server Hooks: /**
* Invokes a server hook.
*
* @param name The name of the hook (also the filename)
* @param caller The object invoking the hook
* @param userInfo Arbitrary information to the hook from the caller
*/
public Object invokeServerHook(
String name,
Object caller,
Object userInfo) throws Exception;
This call can return
a Java Object (any type), so
even though Security Directory Integrator ignores this during
Server Hook execution, we can make use of returned values in your
own scripted calls.
In a script in an AssemblyLine you may do this:main.invokeServerHook("MyCustomHook", this, "custom information");
Parent topic:
Server Hooks