Creating a Custom Function

Procedure

  • Copy the sample RulebaseCustomFunction.java file from $MQ_HOME/common/standard/rulebase.

    This class has a predefined method, execCustomFunction, with the following signature.

    public HashMap execCustomFunction(HashMap args)

    This method takes one argument, which is a HashMap and expects HashMap in return. The following is a list of predefined constants that can be used: