Maintain a Custom Function Handler

Maintain a Custom Function Handler

A Custom Function Handler is a Java or .NET class that implements the com.oracle.determinations.engine.CustomFunctionHandler interface (in Java) or the Oracle.Determinations.Engine.CustomFunctionHandler interface (in .NET). A single method evaluate (or Evaluate in .NET) is implemented to evaluate the function and return the result.

The CustomFunctionDeclaration parameter supplies a definition for the custom function, the most useful property of which is the name of the custom function (in case more than one custom function is required). Parameters to the function are supplied as an object array, although these objects will all be string objects in practice.

In a rulebase, a custom function handler is called by using the CallCustomFunction function:

 

 

The first parameter is the name of the function which will come through the CustomFunctionDeclaration. The second parameter is a comma-separated list of identifiers, which will be passed to the custom function handler via the object array. Installation of a custom function handler can be accomplished in one of two ways:

See also:

Rulebase configuration

Migrate a Custom Function Handler to a Custom Function Extension