Define Rule Functions

This task describes how to define rule functions to impact virtual service behavior.

To learn more about functions, see Rule Functions.

Select a function

  1. In the Data Model Editor, expand a rule.

  2. Click inside the function field (fx) for a column and select a function. If the function row is not displayed, from the View Options menu, select Functions.

  3. Dynamic Data Functions:

    1. Click inside the function field (fx) of a response column and select a function.

      Note: Dynamic data functions are available for lowest level headers only. Complex headers that include lower level headers under them are displayed in italic text (header). To display lower level headers, double-click the column header.

    2. Configure the output format for the function. For details on configuring dynamic data functions, see Configure Dynamic Data Functions.

Back to top

Create a new, custom function

  1. In the Data Model Editor, expand a rule.
  2. Click inside the function field (fx) for a column and select New f(x). For user interface details, see New/Edit Function Dialog Box.

    Custom Functions: Service Virtualization provides a number of pre-defined variables that you can use when creating and configuring custom functions. For details, see Define Custom Functions.

Back to top

Preview your changes

Simulation Preview displays in real time how changes in the data model are affecting the simulation.

In the Data Model Editor, select View Options > Simulation Preview. The Simulation Preview pane displays a simulation of a message whose request matches the currently selected message in the Data Model Editor. The message is passed to the simulation engine and the result is displayed in the response section.

Back to top