Previous Topic: How to Use Business LogicNext Topic: Map and Vector in Business Logic Formulas


Define Business Logic Formulas

Defining a Business Logic formula means to create the formula based on the calculation requirements. The formulas defined are all of the unique formulas that are used in their various permutations in the contract's metrics, each as a Business Logic module. For example, if the contract holds three metrics for calculating the average ticket resolution time and one metric for each ticket priority, a single formula is developed for calculating the ticket resolution time with the ticket priority as its parameter. This formula, once tested, is defined as a module and is attached to all of the relevant metrics.

Follow these steps:

  1. In the Contracts page, click Open Metrics button next to the contract for which you want to define the business logic.

    The Contract Details page All Metrics tab opens.

  2. Click Edit button next to the metric whose business logic you want to define.

    The metric's General tab opens.

  3. Click on the Business Logic tab.
  4. Click Expand icon to show the Formula name field, Description field and Select a Business Logic Template button.
  5. Fill in the information as required.

    Note: The Business Logic editor is an ActiveX component. If this is the first time the Business Logic editor is being invoked on the current machine, you are prompted to install the component. Click Yes.

    1. In Formula Name, enter a name for the formula.
    2. In Description, enter a description for the formula.
    3. Click Select a Business Logic Template to attach a Business Logic template.
  6. In the Business Logic formula area, enter the required code for the Business Logic formula. Formula components are described in the sections that follow.
  7. Select the options to be effective when saving the Business Logic formula:
  8. Click Apply to apply the changes and continue.

    -OR-

  9. Click Save to save the changes.

The Business Logic toolbar, located above the Business Logic formula area, enables you to perform additional functions on the formulas, as described in the following table:

Icon

Shortcut

Description

Save button

Ctrl-S

Saves the Business Logic text.

Cut button

Ctrl-X

Cuts selected Business Logic text.

Copy button

Ctrl-C

Copies selected Business Logic text to the clipboard.

Paste button

Ctrl-V

Pastes Business Logic text from the clipboard.

Find and Replace

Ctrl-F

Opens a pop-up window that enables you to search for and replace Business Logic text.

Undo button

Ctrl-Z

Undoes the last editing action.

Redo button

Ctrl-Y

Repeats the action that was canceled by Undo.

Check Syntax

F7

Checks the Business Logic syntax.

List of Values button

Ctrl-J

Opens a pop-up window for choosing specific Resources, Event Types, Resource Types, Global Objects and Time Units.

Business Logic Modules button

Ctrl-M

Opens a pop-up window for choosing business logic modules to be included into the Business Logic formula.

Parameters button

Ctrl-P

Opens a pop-up window for choosing parameters to be included into the Business Logic formula.

Toggle Full Screen Mode button

F11

Toggle full screen mode on/off.

Important

When creating Business Logic formulas: