Business Function Metrics

Business Function metrics use JavaScript business functions to evaluate data and return metric scores, and depending on the JavaScript, messages that provide more detailed information about the returned scores.

For information on business functions, refer to the Business Functions topic of the Business Rules documentation here.

Business Function Metric Configuration

Before metrics can be created, a Setup Group must be configured to hold the metrics. For information on configuring a setup group for metrics, refer to the Initial Setup for Metrics topic in the Metrics documentation here.

For information on creating a metric, refer to the Creating and Editing Metrics topic in the Metrics documentation here.

To configure a business function metric:

  1. From the Edit Metric Configuration wizard, select 'Business Function Metric.'

  1. Click the ellipsis button () by the Business function for Metric parameter.

  1. Select the business function to include as part of the business function metric. To search for a specific business function, click the 'Search' tab and enter the search criteria.

Note: For a business function to be selectable for a business function metric, it must have 'Node' as the input and 'MetricBusinessFunctionResult' as the return type.

  1. Click 'Save' to close the 'Edit Metric Configuration' wizard.

The business function metric is configured and ready for use.

Important: The MetricBusinessFunctionResult of a JavaScript business function must be instantiated directly in the business function. It cannot be instantiated by a JavaScript library.

With the configured metric selected, the name of the metric plugin type (in this case, 'Business Function Metric') and the name of the selected business function will be listed under the Configuration flipper.