CustomVariableProvider

public interface CustomVariableProvider

Callback that is provided by the application to provide a custom variable.

Public Method Summary

abstract String
getValue(Map<StringObject> parameters)
getValue(Map) is given a map of named parameters (the map may contain String, Double, Boolean, Map, or List values).

Public Methods

public abstract String getValue (Map<StringObject> parameters)

getValue(Map) is given a map of named parameters (the map may contain String, Double, Boolean, Map, or List values). It should return a String which is the calculated value of the variable.

This function will be called from a background thread during event processing. The container will cache one instance of this object and reuse it.

Returns
  • the value of the custom variable requested